diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 52d84522c2c2..9f179d4832d5 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -394,9 +394,6 @@ int btrfs_sync_fs(struct super_block *sb, int wait) | |||
394 | struct btrfs_root *root = btrfs_sb(sb); | 394 | struct btrfs_root *root = btrfs_sb(sb); |
395 | int ret; | 395 | int ret; |
396 | 396 | ||
397 | if (sb->s_flags & MS_RDONLY) | ||
398 | return 0; | ||
399 | |||
400 | if (!wait) { | 397 | if (!wait) { |
401 | filemap_flush(root->fs_info->btree_inode->i_mapping); | 398 | filemap_flush(root->fs_info->btree_inode->i_mapping); |
402 | return 0; | 399 | return 0; |