acl.h (d4bbf7e7759afc172e2bfbc5c416324590049cdd) acl.h (64e178a7118b1cf7648391755e44dcc209091003)
1/*
2 File: fs/ext4/acl.h
3
4 (C) 2001 Andreas Gruenbacher, <a.gruenbacher@computer.org>
5*/
6
7#include <linux/posix_acl_xattr.h>
8

--- 41 unchanged lines hidden (view full) ---

50 return s / sizeof(ext4_acl_entry) + 4;
51 }
52}
53
54#ifdef CONFIG_EXT4_FS_POSIX_ACL
55
56/* acl.c */
57struct posix_acl *ext4_get_acl(struct inode *inode, int type);
1/*
2 File: fs/ext4/acl.h
3
4 (C) 2001 Andreas Gruenbacher, <a.gruenbacher@computer.org>
5*/
6
7#include <linux/posix_acl_xattr.h>
8

--- 41 unchanged lines hidden (view full) ---

50 return s / sizeof(ext4_acl_entry) + 4;
51 }
52}
53
54#ifdef CONFIG_EXT4_FS_POSIX_ACL
55
56/* acl.c */
57struct posix_acl *ext4_get_acl(struct inode *inode, int type);
58extern int ext4_acl_chmod(struct inode *);
58int ext4_set_acl(struct inode *inode, struct posix_acl *acl, int type);
59extern int ext4_init_acl(handle_t *, struct inode *, struct inode *);
60
61#else /* CONFIG_EXT4_FS_POSIX_ACL */
62#include <linux/sched.h>
63#define ext4_get_acl NULL
59extern int ext4_init_acl(handle_t *, struct inode *, struct inode *);
60
61#else /* CONFIG_EXT4_FS_POSIX_ACL */
62#include <linux/sched.h>
63#define ext4_get_acl NULL
64#define ext4_set_acl NULL
64
65static inline int
65
66static inline int
66ext4_acl_chmod(struct inode *inode)
67{
68 return 0;
69}
70
71static inline int
72ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir)
73{
74 return 0;
75}
76#endif /* CONFIG_EXT4_FS_POSIX_ACL */
77
67ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir)
68{
69 return 0;
70}
71#endif /* CONFIG_EXT4_FS_POSIX_ACL */
72