From: Chris Mason Date: Wed, 14 Mar 2007 13:20:39 +0000 (-0400) Subject: Btrfs: properly reset block cache on free X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=710874947aa0f81c3b348b052e81cb9075113c49;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: properly reset block cache on free Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 21f39b404697..7f156d9b7089 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -182,7 +182,7 @@ static int __free_extent(struct btrfs_root *root, u64 blocknr, u64 num_blocks) } ret = btrfs_del_item(extent_root, &path); if (root != extent_root && - extent_root->last_insert.objectid < blocknr) + extent_root->last_insert.objectid > blocknr) extent_root->last_insert.objectid = blocknr; if (ret) BUG();