aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-14 09:20:39 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-14 09:20:39 -0400
commit710874947aa0f81c3b348b052e81cb9075113c49 (patch)
tree8f28957509d0dcd4584288f1790d2da3caa4ae6d /fs
parent3768f3689fc76ecea17414936dff7a02746a4355 (diff)
Btrfs: properly reset block cache on free
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
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)
182 } 182 }
183 ret = btrfs_del_item(extent_root, &path); 183 ret = btrfs_del_item(extent_root, &path);
184 if (root != extent_root && 184 if (root != extent_root &&
185 extent_root->last_insert.objectid < blocknr) 185 extent_root->last_insert.objectid > blocknr)
186 extent_root->last_insert.objectid = blocknr; 186 extent_root->last_insert.objectid = blocknr;
187 if (ret) 187 if (ret)
188 BUG(); 188 BUG();