diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 6efaee8d7739..1e3e414c8501 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2830,9 +2830,11 @@ retry_root_backup: | |||
2830 | btrfs_set_opt(fs_info->mount_opt, SSD); | 2830 | btrfs_set_opt(fs_info->mount_opt, SSD); |
2831 | } | 2831 | } |
2832 | 2832 | ||
2833 | /* Set the real inode map cache flag */ | 2833 | /* |
2834 | if (btrfs_test_opt(tree_root, CHANGE_INODE_CACHE)) | 2834 | * Mount does not set all options immediatelly, we can do it now and do |
2835 | btrfs_set_opt(tree_root->fs_info->mount_opt, INODE_MAP_CACHE); | 2835 | * not have to wait for transaction commit |
2836 | */ | ||
2837 | btrfs_apply_pending_changes(fs_info); | ||
2836 | 2838 | ||
2837 | #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY | 2839 | #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY |
2838 | if (btrfs_test_opt(tree_root, CHECK_INTEGRITY)) { | 2840 | if (btrfs_test_opt(tree_root, CHECK_INTEGRITY)) { |