diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-20 20:28:47 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 15:03:03 +0900 |
commit | 77888c1e42e8c76e16204cd99c19a01829421402 (patch) | |
tree | 3d19c41bfa81a689c89ed5f0b88c47aa0f109fa0 /fs/f2fs/f2fs.h | |
parent | 6f85b3520325a67ee4ac33e75bbcdbc25c79ce69 (diff) | |
download | op-kernel-dev-77888c1e42e8c76e16204cd99c19a01829421402.zip op-kernel-dev-77888c1e42e8c76e16204cd99c19a01829421402.tar.gz |
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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 9182b27..6594ce1 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -887,6 +887,11 @@ static inline int cond_clear_inode_flag(struct f2fs_inode_info *fi, int flag) return 0; } +static inline int f2fs_readonly(struct super_block *sb) +{ + return sb->s_flags & MS_RDONLY; +} + /* * file.c */ |