aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/acl.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-20 08:16:49 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-25 23:58:21 -0500
commit47f70d08facf288a9faad6e6c36ac2e670be8195 (patch)
tree6c615c020bb9b8faa7c59e05580150449010dfde /fs/reiserfs/acl.h
parent702e5bc68ad2c02f1b12b53ef7093074af9d2441 (diff)
reiserfs: use generic posix ACL infrastructure
Also don't bother to set up a .get_acl method for symlinks as we do not support access control (ACLs or even mode bits) for symlinks in Linux. 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/reiserfs/acl.h')
-rw-r--r--fs/reiserfs/acl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/acl.h b/fs/reiserfs/acl.h
index f096b80e73d8..4a211f5b34b8 100644
--- a/fs/reiserfs/acl.h
+++ b/fs/reiserfs/acl.h
@@ -48,18 +48,18 @@ static inline int reiserfs_acl_count(size_t size)
48 48
49#ifdef CONFIG_REISERFS_FS_POSIX_ACL 49#ifdef CONFIG_REISERFS_FS_POSIX_ACL
50struct posix_acl *reiserfs_get_acl(struct inode *inode, int type); 50struct posix_acl *reiserfs_get_acl(struct inode *inode, int type);
51int reiserfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
51int reiserfs_acl_chmod(struct inode *inode); 52int reiserfs_acl_chmod(struct inode *inode);
52int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, 53int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th,
53 struct inode *dir, struct dentry *dentry, 54 struct inode *dir, struct dentry *dentry,
54 struct inode *inode); 55 struct inode *inode);
55int reiserfs_cache_default_acl(struct inode *dir); 56int reiserfs_cache_default_acl(struct inode *dir);
56extern const struct xattr_handler reiserfs_posix_acl_default_handler;
57extern const struct xattr_handler reiserfs_posix_acl_access_handler;
58 57
59#else 58#else
60 59
61#define reiserfs_cache_default_acl(inode) 0 60#define reiserfs_cache_default_acl(inode) 0
62#define reiserfs_get_acl NULL 61#define reiserfs_get_acl NULL
62#define reiserfs_set_acl NULL
63 63
64static inline int reiserfs_acl_chmod(struct inode *inode) 64static inline int reiserfs_acl_chmod(struct inode *inode)
65{ 65{