diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-20 08:16:48 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 23:58:21 -0500 |
commit | 702e5bc68ad2c02f1b12b53ef7093074af9d2441 (patch) | |
tree | b88af8aafb7f8e166da41824cbffb99adf16f042 /fs/ocfs2/acl.h | |
parent | f2963d4551e7f500025d687586a25a09ea28941e (diff) |
ocfs2: use generic posix ACL infrastructure
This contains some major refactoring for the create path so that
inodes are created with the right mode to start with instead of
fixing it up later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/acl.h')
-rw-r--r-- | fs/ocfs2/acl.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/ocfs2/acl.h b/fs/ocfs2/acl.h index 071fbd380f2f..3fce68d08625 100644 --- a/fs/ocfs2/acl.h +++ b/fs/ocfs2/acl.h | |||
@@ -27,10 +27,13 @@ struct ocfs2_acl_entry { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type); | 29 | struct posix_acl *ocfs2_iop_get_acl(struct inode *inode, int type); |
30 | extern int ocfs2_acl_chmod(struct inode *); | 30 | int ocfs2_iop_set_acl(struct inode *inode, struct posix_acl *acl, int type); |
31 | extern int ocfs2_init_acl(handle_t *, struct inode *, struct inode *, | 31 | int ocfs2_set_acl(handle_t *handle, |
32 | struct buffer_head *, struct buffer_head *, | 32 | struct inode *inode, |
33 | struct ocfs2_alloc_context *, | 33 | struct buffer_head *di_bh, |
34 | struct ocfs2_alloc_context *); | 34 | int type, |
35 | struct posix_acl *acl, | ||
36 | struct ocfs2_alloc_context *meta_ac, | ||
37 | struct ocfs2_alloc_context *data_ac); | ||
35 | 38 | ||
36 | #endif /* OCFS2_ACL_H */ | 39 | #endif /* OCFS2_ACL_H */ |