Commit 71087494 authored by Chris Mason's avatar Chris Mason Committed by David Woodhouse

Btrfs: properly reset block cache on free

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 3768f368
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment