OSDN Git Service

Btrfs: try to keep a healthy ratio of metadata vs data block groups
[android-x86/kernel.git] / fs / btrfs / disk-io.c
index a6b8374..44c94d8 100644 (file)
@@ -1604,6 +1604,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,
        fs_info->btree_inode = new_inode(sb);
        fs_info->btree_inode->i_ino = 1;
        fs_info->btree_inode->i_nlink = 1;
+       fs_info->metadata_ratio = 8;
 
        fs_info->thread_pool_size = min_t(unsigned long,
                                          num_online_cpus() + 2, 8);