aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-20 08:16:42 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-25 23:58:18 -0500
commit37bc15392a2363ca822b2c2828e0ccafbea32f75 (patch)
tree66ed7ab55227b74ad0af9d79bde0e95bb49e13ed /fs/jffs2
parent5bf3258fd2acd8515450ab8efcd97c9d3b69f7f9 (diff)
fs: make posix_acl_create more useful
Rename the current posix_acl_created to __posix_acl_create and add a fully featured helper to set up the ACLs on file creation that uses get_acl(). Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jffs2')
-rw-r--r--fs/jffs2/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c
index 5853969a51bc..4d6e31b19816 100644
--- a/fs/jffs2/acl.c
+++ b/fs/jffs2/acl.c
@@ -295,7 +295,7 @@ int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, umode_t *i_mode
295 if (S_ISDIR(*i_mode)) 295 if (S_ISDIR(*i_mode))
296 set_cached_acl(inode, ACL_TYPE_DEFAULT, acl); 296 set_cached_acl(inode, ACL_TYPE_DEFAULT, acl);
297 297
298 rc = posix_acl_create(&acl, GFP_KERNEL, i_mode); 298 rc = __posix_acl_create(&acl, GFP_KERNEL, i_mode);
299 if (rc < 0) 299 if (rc < 0)
300 return rc; 300 return rc;
301 if (rc > 0) 301 if (rc > 0)