提交 54641bd1 编写于 作者: C Chris Mason

Btrfs: Force caching of metadata block groups on mount to avoid deadlock

This is a temporary change to avoid deadlocks until the extent tree locking
is fixed up.
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 0bd40a71
......@@ -3333,6 +3333,11 @@ int btrfs_read_block_groups(struct btrfs_root *root)
set_state_private(block_group_cache, found_key.objectid,
(unsigned long)cache);
/* hack for now */
if (cache->flags & BTRFS_BLOCK_GROUP_METADATA) {
cache_block_group(root->fs_info->extent_root,
cache);
}
if (key.objectid >=
btrfs_super_total_bytes(&info->super_copy))
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册