Btrfs: Delete any remaining extent_maps before freeing the inode
authorChris Mason <chris.mason@oracle.com>
Mon, 14 Jan 2008 20:10:26 +0000 (15:10 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:59 +0000 (11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index fd0e0d80333b439e538b4ebb148c79276d4ff233..5260b4708158a79ce04f2bdd58b3675adcc335ef 100644 (file)
@@ -2601,6 +2601,7 @@ void btrfs_destroy_inode(struct inode *inode)
        WARN_ON(!list_empty(&inode->i_dentry));
        WARN_ON(inode->i_data.nrpages);
 
+       btrfs_drop_extent_cache(inode, 0, (u64)-1);
        kmem_cache_free(btrfs_inode_cachep, BTRFS_I(inode));
 }