aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-07-23 11:37:31 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-25 14:30:23 -0400
commit4e34e719e457f2e031297175410fc0bd4016a085 (patch)
treeab969a371e0d2efc6bfbf503ca6cdfce3af3bf6c /include/linux/fs.h
parentedde854e8bb34a7f32fa993d721f1da0faf64165 (diff)
fs: take the ACL checks to common code
Replace the ->check_acl method with a ->get_acl method that simply reads an ACL from disk after having a cache miss. This means we can replace the ACL checking boilerplate code with a single implementation in namei.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 7a757a48a5c..12f84b30c3c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1586,7 +1586,7 @@ struct inode_operations {
1586 struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameidata *); 1586 struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameidata *);
1587 void * (*follow_link) (struct dentry *, struct nameidata *); 1587 void * (*follow_link) (struct dentry *, struct nameidata *);
1588 int (*permission) (struct inode *, int); 1588 int (*permission) (struct inode *, int);
1589 int (*check_acl)(struct inode *, int); 1589 struct posix_acl * (*get_acl)(struct inode *, int);
1590 1590
1591 int (*readlink) (struct dentry *, char __user *,int); 1591 int (*readlink) (struct dentry *, char __user *,int);
1592 void (*put_link) (struct dentry *, struct nameidata *, void *); 1592 void (*put_link) (struct dentry *, struct nameidata *, void *);