diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-23 11:37:31 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-25 14:30:23 -0400 |
commit | 4e34e719e457f2e031297175410fc0bd4016a085 (patch) | |
tree | ab969a371e0d2efc6bfbf503ca6cdfce3af3bf6c /fs/9p/vfs_inode_dotl.c | |
parent | edde854e8bb34a7f32fa993d721f1da0faf64165 (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 'fs/9p/vfs_inode_dotl.c')
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 803f59ff2faa..9d808d0e0cd9 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -872,7 +872,7 @@ const struct inode_operations v9fs_dir_inode_operations_dotl = { | |||
872 | .getxattr = generic_getxattr, | 872 | .getxattr = generic_getxattr, |
873 | .removexattr = generic_removexattr, | 873 | .removexattr = generic_removexattr, |
874 | .listxattr = v9fs_listxattr, | 874 | .listxattr = v9fs_listxattr, |
875 | .check_acl = v9fs_check_acl, | 875 | .get_acl = v9fs_iop_get_acl, |
876 | }; | 876 | }; |
877 | 877 | ||
878 | const struct inode_operations v9fs_file_inode_operations_dotl = { | 878 | const struct inode_operations v9fs_file_inode_operations_dotl = { |
@@ -882,7 +882,7 @@ const struct inode_operations v9fs_file_inode_operations_dotl = { | |||
882 | .getxattr = generic_getxattr, | 882 | .getxattr = generic_getxattr, |
883 | .removexattr = generic_removexattr, | 883 | .removexattr = generic_removexattr, |
884 | .listxattr = v9fs_listxattr, | 884 | .listxattr = v9fs_listxattr, |
885 | .check_acl = v9fs_check_acl, | 885 | .get_acl = v9fs_iop_get_acl, |
886 | }; | 886 | }; |
887 | 887 | ||
888 | const struct inode_operations v9fs_symlink_inode_operations_dotl = { | 888 | const struct inode_operations v9fs_symlink_inode_operations_dotl = { |