diff options
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
70 | static void sync_inodes_one_sb(struct super_block *sb, void *arg) | 70 | static 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 | ||
76 | static void sync_fs_one_sb(struct super_block *sb, void *arg) | 76 | static 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 | ||