aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index c0363626c5da..18541dc4ec0b 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2750,7 +2750,7 @@ int open_ctree(struct super_block *sb,
2750 */ 2750 */
2751 fs_info->compress_type = BTRFS_COMPRESS_ZLIB; 2751 fs_info->compress_type = BTRFS_COMPRESS_ZLIB;
2752 2752
2753 ret = btrfs_parse_options(tree_root, options); 2753 ret = btrfs_parse_options(tree_root, options, sb->s_flags);
2754 if (ret) { 2754 if (ret) {
2755 err = ret; 2755 err = ret;
2756 goto fail_alloc; 2756 goto fail_alloc;
@@ -3029,8 +3029,9 @@ retry_root_backup:
3029 if (ret) 3029 if (ret)
3030 goto fail_trans_kthread; 3030 goto fail_trans_kthread;
3031 3031
3032 /* do not make disk changes in broken FS */ 3032 /* do not make disk changes in broken FS or nologreplay is given */
3033 if (btrfs_super_log_root(disk_super) != 0) { 3033 if (btrfs_super_log_root(disk_super) != 0 &&
3034 !btrfs_test_opt(tree_root, NOLOGREPLAY)) {
3034 ret = btrfs_replay_log(fs_info, fs_devices); 3035 ret = btrfs_replay_log(fs_info, fs_devices);
3035 if (ret) { 3036 if (ret) {
3036 err = ret; 3037 err = ret;