diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-20 08:16:41 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 23:58:18 -0500 |
commit | 5bf3258fd2acd8515450ab8efcd97c9d3b69f7f9 (patch) | |
tree | 117a3aba664aa9859cc346bdedbaf1c54c39d7a1 /fs/btrfs/acl.c | |
parent | 2aeccbe957d0d2b9fbb2a236e53a955097e2a9ce (diff) |
fs: make posix_acl_chmod more useful
Rename the current posix_acl_chmod to __posix_acl_chmod and add
a fully featured ACL chmod helper that uses the ->set_acl inode
operation.
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/btrfs/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index 0890c83643e9..1af04ff88986 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c | |||
@@ -256,7 +256,7 @@ int btrfs_acl_chmod(struct inode *inode) | |||
256 | if (IS_ERR_OR_NULL(acl)) | 256 | if (IS_ERR_OR_NULL(acl)) |
257 | return PTR_ERR(acl); | 257 | return PTR_ERR(acl); |
258 | 258 | ||
259 | ret = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); | 259 | ret = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); |
260 | if (ret) | 260 | if (ret) |
261 | return ret; | 261 | return ret; |
262 | ret = btrfs_set_acl(NULL, inode, acl, ACL_TYPE_ACCESS); | 262 | ret = btrfs_set_acl(NULL, inode, acl, ACL_TYPE_ACCESS); |