aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sync.c')
-rw-r--r--fs/sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sync.c b/fs/sync.c
index 2e3fd7d94d2d..a576aa2e6b09 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -57,7 +57,7 @@ int sync_filesystem(struct super_block *sb)
57 /* 57 /*
58 * No point in syncing out anything if the filesystem is read-only. 58 * No point in syncing out anything if the filesystem is read-only.
59 */ 59 */
60 if (sb->s_flags & MS_RDONLY) 60 if (sb_rdonly(sb))
61 return 0; 61 return 0;
62 62
63 ret = __sync_filesystem(sb, 0); 63 ret = __sync_filesystem(sb, 0);
@@ -69,13 +69,13 @@ EXPORT_SYMBOL(sync_filesystem);
69 69
70static void sync_inodes_one_sb(struct super_block *sb, void *arg) 70static void sync_inodes_one_sb(struct super_block *sb, void *arg)
71{ 71{
72 if (!(sb->s_flags & MS_RDONLY)) 72 if (!sb_rdonly(sb))
73 sync_inodes_sb(sb); 73 sync_inodes_sb(sb);
74} 74}
75 75
76static void sync_fs_one_sb(struct super_block *sb, void *arg) 76static void sync_fs_one_sb(struct super_block *sb, void *arg)
77{ 77{
78 if (!(sb->s_flags & MS_RDONLY) && sb->s_op->sync_fs) 78 if (!sb_rdonly(sb) && sb->s_op->sync_fs)
79 sb->s_op->sync_fs(sb, *(int *)arg); 79 sb->s_op->sync_fs(sb, *(int *)arg);
80} 80}
81 81