提交 71087494 编写于 作者: C Chris Mason 提交者: David Woodhouse

Btrfs: properly reset block cache on free

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 3768f368
...@@ -182,7 +182,7 @@ static int __free_extent(struct btrfs_root *root, u64 blocknr, u64 num_blocks) ...@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册