aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/acl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-20 08:16:41 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-25 23:58:18 -0500
commit5bf3258fd2acd8515450ab8efcd97c9d3b69f7f9 (patch)
tree117a3aba664aa9859cc346bdedbaf1c54c39d7a1 /fs/9p/acl.c
parent2aeccbe957d0d2b9fbb2a236e53a955097e2a9ce (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/9p/acl.c')
-rw-r--r--fs/9p/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c
index 7af425f53bee..f5ce5c50c57e 100644
--- a/fs/9p/acl.c
+++ b/fs/9p/acl.c
@@ -156,7 +156,7 @@ int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
156 return -EOPNOTSUPP; 156 return -EOPNOTSUPP;
157 acl = v9fs_get_cached_acl(inode, ACL_TYPE_ACCESS); 157 acl = v9fs_get_cached_acl(inode, ACL_TYPE_ACCESS);
158 if (acl) { 158 if (acl) {
159 retval = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); 159 retval = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
160 if (retval) 160 if (retval)
161 return retval; 161 return retval;
162 set_cached_acl(inode, ACL_TYPE_ACCESS, acl); 162 set_cached_acl(inode, ACL_TYPE_ACCESS, acl);