diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-10-20 05:45:52 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 19:07:36 -0500 |
commit | fa528722d06ecbee9d918b9eec58c5d4c2978839 (patch) | |
tree | 7cc2e12bca4f6a077cfc42319c55b4d8dde4cb1c /fs/f2fs/acl.c | |
parent | 8a2d0ace3af74825e4f1e6fb962f7ee8ef4d9281 (diff) |
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/acl.c')
-rw-r--r-- | fs/f2fs/acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index 620745556828..1ccb26bc2a0b 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c | |||
@@ -236,7 +236,7 @@ static int __f2fs_set_acl(struct inode *inode, int type, | |||
236 | if (acl) { | 236 | if (acl) { |
237 | value = f2fs_acl_to_disk(acl, &size); | 237 | value = f2fs_acl_to_disk(acl, &size); |
238 | if (IS_ERR(value)) { | 238 | if (IS_ERR(value)) { |
239 | cond_clear_inode_flag(fi, FI_ACL_MODE); | 239 | clear_inode_flag(fi, FI_ACL_MODE); |
240 | return (int)PTR_ERR(value); | 240 | return (int)PTR_ERR(value); |
241 | } | 241 | } |
242 | } | 242 | } |
@@ -247,7 +247,7 @@ static int __f2fs_set_acl(struct inode *inode, int type, | |||
247 | if (!error) | 247 | if (!error) |
248 | set_cached_acl(inode, type, acl); | 248 | set_cached_acl(inode, type, acl); |
249 | 249 | ||
250 | cond_clear_inode_flag(fi, FI_ACL_MODE); | 250 | clear_inode_flag(fi, FI_ACL_MODE); |
251 | return error; | 251 | return error; |
252 | } | 252 | } |
253 | 253 | ||