diff options
-rw-r--r-- | fs/btrfs/disk-io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 981652233f70..fb04665e5005 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1757,6 +1757,11 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
1757 | generation + 1); | 1757 | generation + 1); |
1758 | ret = btrfs_recover_log_trees(log_tree_root); | 1758 | ret = btrfs_recover_log_trees(log_tree_root); |
1759 | BUG_ON(ret); | 1759 | BUG_ON(ret); |
1760 | |||
1761 | if (sb->s_flags & MS_RDONLY) { | ||
1762 | ret = btrfs_commit_super(tree_root); | ||
1763 | BUG_ON(ret); | ||
1764 | } | ||
1760 | } | 1765 | } |
1761 | 1766 | ||
1762 | if (!(sb->s_flags & MS_RDONLY)) { | 1767 | if (!(sb->s_flags & MS_RDONLY)) { |