Btrfs: properly reset block cache on free

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2007-03-14 09:20:39 -04:00 committed by David Woodhouse
parent 3768f3689f
commit 710874947a

View File

@ -182,7 +182,7 @@ static int __free_extent(struct btrfs_root *root, u64 blocknr, u64 num_blocks)
} }
ret = btrfs_del_item(extent_root, &path); ret = btrfs_del_item(extent_root, &path);
if (root != extent_root && if (root != extent_root &&
extent_root->last_insert.objectid < blocknr) extent_root->last_insert.objectid > blocknr)
extent_root->last_insert.objectid = blocknr; extent_root->last_insert.objectid = blocknr;
if (ret) if (ret)
BUG(); BUG();