]> Pileus Git - ~andy/linux/blobdiff - fs/btrfs/disk-io.c
btrfs: Add noinode_cache mount option
[~andy/linux] / fs / btrfs / disk-io.c
index f0e7bbe148239188f528a3467330b51ba7c87113..4f142c986544856c052abd80310122eb79e14654 100644 (file)
@@ -2776,6 +2776,10 @@ retry_root_backup:
                btrfs_set_opt(fs_info->mount_opt, SSD);
        }
 
+       /* Set the real inode map cache flag */
+       if (btrfs_test_opt(tree_root, CHANGE_INODE_CACHE))
+               btrfs_set_opt(tree_root->fs_info->mount_opt, INODE_MAP_CACHE);
+
 #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
        if (btrfs_test_opt(tree_root, CHECK_INTEGRITY)) {
                ret = btrfsic_mount(tree_root, fs_devices,