acl.h (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) acl.h (64e178a7118b1cf7648391755e44dcc209091003)
1/*
2 File: fs/ext2/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(ext2_acl_entry) + 4;
51 }
52}
53
54#ifdef CONFIG_EXT2_FS_POSIX_ACL
55
56/* acl.c */
57extern struct posix_acl *ext2_get_acl(struct inode *inode, int type);
1/*
2 File: fs/ext2/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(ext2_acl_entry) + 4;
51 }
52}
53
54#ifdef CONFIG_EXT2_FS_POSIX_ACL
55
56/* acl.c */
57extern struct posix_acl *ext2_get_acl(struct inode *inode, int type);
58extern int ext2_acl_chmod (struct inode *);
58extern int ext2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
59extern int ext2_init_acl (struct inode *, struct inode *);
60
61#else
62#include <linux/sched.h>
63#define ext2_get_acl NULL
64#define ext2_set_acl NULL
65
59extern int ext2_init_acl (struct inode *, struct inode *);
60
61#else
62#include <linux/sched.h>
63#define ext2_get_acl NULL
64#define ext2_set_acl NULL
65
66static inline int
67ext2_acl_chmod (struct inode *inode)
68{
69 return 0;
70}
71
72static inline int ext2_init_acl (struct inode *inode, struct inode *dir)
73{
74 return 0;
75}
76#endif
77
66static inline int ext2_init_acl (struct inode *inode, struct inode *dir)
67{
68 return 0;
69}
70#endif
71