Btrfs: properly reset block cache on free
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
3768f3689f
commit
710874947a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue