diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-20 08:16:42 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 23:58:18 -0500 |
commit | 37bc15392a2363ca822b2c2828e0ccafbea32f75 (patch) | |
tree | 66ed7ab55227b74ad0af9d79bde0e95bb49e13ed /fs/9p | |
parent | 5bf3258fd2acd8515450ab8efcd97c9d3b69f7f9 (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/9p')
-rw-r--r-- | fs/9p/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c index f5ce5c50c57e..8482f2d11606 100644 --- a/fs/9p/acl.c +++ b/fs/9p/acl.c | |||
@@ -200,7 +200,7 @@ int v9fs_acl_mode(struct inode *dir, umode_t *modep, | |||
200 | if (acl) { | 200 | if (acl) { |
201 | if (S_ISDIR(mode)) | 201 | if (S_ISDIR(mode)) |
202 | *dpacl = posix_acl_dup(acl); | 202 | *dpacl = posix_acl_dup(acl); |
203 | retval = posix_acl_create(&acl, GFP_NOFS, &mode); | 203 | retval = __posix_acl_create(&acl, GFP_NOFS, &mode); |
204 | if (retval < 0) | 204 | if (retval < 0) |
205 | return retval; | 205 | return retval; |
206 | if (retval > 0) | 206 | if (retval > 0) |