diff options
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 460db0cb2d07..bfa1ae1dc0fa 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -228,7 +228,7 @@ int btrfs_find_orphan_roots(struct btrfs_fs_info *fs_info) | |||
228 | int ret; | 228 | int ret; |
229 | bool can_recover = true; | 229 | bool can_recover = true; |
230 | 230 | ||
231 | if (fs_info->sb->s_flags & MS_RDONLY) | 231 | if (sb_rdonly(fs_info->sb)) |
232 | can_recover = false; | 232 | can_recover = false; |
233 | 233 | ||
234 | path = btrfs_alloc_path(); | 234 | path = btrfs_alloc_path(); |