summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-20 13:28:47 +0200
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-28 08:03:03 +0200
commit77888c1e42e8c76e16204cd99c19a01829421402 (patch)
tree3d19c41bfa81a689c89ed5f0b88c47aa0f109fa0 /fs/f2fs/file.c
parentf2fs: avoid RECLAIM_FS-ON-W: deadlock (diff)
downloadlinux-77888c1e42e8c76e16204cd99c19a01829421402.tar.xz
linux-77888c1e42e8c76e16204cd99c19a01829421402.zip
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/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 9937ba1a4d24..316bcfe80448 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -114,7 +114,7 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
.for_reclaim = 0,
};
- if (inode->i_sb->s_flags & MS_RDONLY)
+ if (f2fs_readonly(inode->i_sb))
return 0;
trace_f2fs_sync_file_enter(inode);