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>
Cette révision appartient à :
Christoph Hellwig
2013-12-20 05:16:42 -08:00
révisé par Al Viro
Parent 5bf3258fd2
révision 37bc15392a
17 fichiers modifiés avec 81 ajouts et 23 suppressions

Voir le fichier

@@ -401,7 +401,7 @@ int ocfs2_init_acl(handle_t *handle,
goto cleanup;
}
mode = inode->i_mode;
ret = posix_acl_create(&acl, GFP_NOFS, &mode);
ret = __posix_acl_create(&acl, GFP_NOFS, &mode);
if (ret < 0)
return ret;