summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-20 15:28:47 +0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-28 10:03:03 +0400
commit77888c1e42e8c76e16204cd99c19a01829421402 (patch)
tree3d19c41bfa81a689c89ed5f0b88c47aa0f109fa0 /fs/f2fs/super.c
parent6f85b3520325a67ee4ac33e75bbcdbc25c79ce69 (diff)
downloadlinux-77888c1e42e8c76e16204cd99c19a01829421402.tar.xz
f2fs: add f2fs_readonly()
Introduce a simple macro function for readability. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 8555f7df82c7..3ac305da7cee 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -170,7 +170,7 @@ static int f2fs_freeze(struct super_block *sb)
{
int err;
- if (sb->s_flags & MS_RDONLY)
+ if (f2fs_readonly(sb))
return 0;
err = f2fs_sync_fs(sb, 1);