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>
Esse commit está contido em:
Christoph Hellwig
2013-12-20 05:16:42 -08:00
commit de Al Viro
commit 37bc15392a
17 arquivos alterados com 81 adições e 23 exclusões

Ver arquivo

@@ -131,7 +131,7 @@ int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode)
goto out;
}
error = posix_acl_create(&acl, GFP_NOFS, &mode);
error = __posix_acl_create(&acl, GFP_NOFS, &mode);
if (error < 0)
return error;