diff options
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ static int __sync_filesystem(struct super_block *sb, int wait) | |||
33 | * This should be safe, as we require bdi backing to actually | 33 | * This should be safe, as we require bdi backing to actually |
34 | * write out data in the first place | 34 | * write out data in the first place |
35 | */ | 35 | */ |
36 | if (!sb->s_bdi || sb->s_bdi == &noop_backing_dev_info) | 36 | if (sb->s_bdi == &noop_backing_dev_info) |
37 | return 0; | 37 | return 0; |
38 | 38 | ||
39 | if (sb->s_qcop && sb->s_qcop->quota_sync) | 39 | if (sb->s_qcop && sb->s_qcop->quota_sync) |
@@ -79,7 +79,7 @@ EXPORT_SYMBOL_GPL(sync_filesystem); | |||
79 | 79 | ||
80 | static void sync_one_sb(struct super_block *sb, void *arg) | 80 | static void sync_one_sb(struct super_block *sb, void *arg) |
81 | { | 81 | { |
82 | if (!(sb->s_flags & MS_RDONLY) && sb->s_bdi) | 82 | if (!(sb->s_flags & MS_RDONLY)) |
83 | __sync_filesystem(sb, *(int *)arg); | 83 | __sync_filesystem(sb, *(int *)arg); |
84 | } | 84 | } |
85 | /* | 85 | /* |