diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-10-20 17:45:52 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 16:07:36 -0800 |
commit | fa528722d06ecbee9d918b9eec58c5d4c2978839 (patch) | |
tree | 7cc2e12bca4f6a077cfc42319c55b4d8dde4cb1c /fs/f2fs/f2fs.h | |
parent | 8a2d0ace3af74825e4f1e6fb962f7ee8ef4d9281 (diff) | |
download | blackbird-op-linux-fa528722d06ecbee9d918b9eec58c5d4c2978839.tar.gz blackbird-op-linux-fa528722d06ecbee9d918b9eec58c5d4c2978839.zip |
f2fs: remove the redundant function cond_clear_inode_flag
Use clear_inode_flag to replace the redundant cond_clear_inode_flag.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cb59ebbf0f38..3608c13aa7a2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1117,15 +1117,6 @@ static inline void set_acl_inode(struct f2fs_inode_info *fi, umode_t mode) set_inode_flag(fi, FI_ACL_MODE); } -static inline int cond_clear_inode_flag(struct f2fs_inode_info *fi, int flag) -{ - if (is_inode_flag_set(fi, FI_ACL_MODE)) { - clear_inode_flag(fi, FI_ACL_MODE); - return 1; - } - return 0; -} - static inline void get_inline_info(struct f2fs_inode_info *fi, struct f2fs_inode *ri) { |