diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/generic_acl.h | 41 | ||||
| -rw-r--r-- | include/linux/shmem_fs.h | 16 |
2 files changed, 10 insertions, 47 deletions
diff --git a/include/linux/generic_acl.h b/include/linux/generic_acl.h index 886f5faa08cb..ca666d18ed67 100644 --- a/include/linux/generic_acl.h +++ b/include/linux/generic_acl.h | |||
| @@ -1,36 +1,15 @@ | |||
| 1 | /* | 1 | #ifndef LINUX_GENERIC_ACL_H |
| 2 | * include/linux/generic_acl.h | 2 | #define LINUX_GENERIC_ACL_H |
| 3 | * | ||
| 4 | * (C) 2005 Andreas Gruenbacher <agruen@suse.de> | ||
| 5 | * | ||
| 6 | * This file is released under the GPL. | ||
| 7 | */ | ||
| 8 | 3 | ||
| 9 | #ifndef GENERIC_ACL_H | 4 | #include <linux/xattr.h> |
| 10 | #define GENERIC_ACL_H | ||
| 11 | 5 | ||
| 12 | #include <linux/posix_acl.h> | 6 | struct inode; |
| 13 | #include <linux/posix_acl_xattr.h> | ||
| 14 | 7 | ||
| 15 | /** | 8 | extern struct xattr_handler generic_acl_access_handler; |
| 16 | * struct generic_acl_operations - filesystem operations | 9 | extern struct xattr_handler generic_acl_default_handler; |
| 17 | * | ||
| 18 | * Filesystems must make these operations available to the generic | ||
| 19 | * operations. | ||
| 20 | */ | ||
| 21 | struct generic_acl_operations { | ||
| 22 | struct posix_acl *(*getacl)(struct inode *, int); | ||
| 23 | void (*setacl)(struct inode *, int, struct posix_acl *); | ||
| 24 | }; | ||
| 25 | 10 | ||
| 26 | size_t generic_acl_list(struct inode *, struct generic_acl_operations *, int, | 11 | int generic_acl_init(struct inode *, struct inode *); |
| 27 | char *, size_t); | 12 | int generic_acl_chmod(struct inode *); |
| 28 | int generic_acl_get(struct inode *, struct generic_acl_operations *, int, | 13 | int generic_check_acl(struct inode *inode, int mask); |
| 29 | void *, size_t); | ||
| 30 | int generic_acl_set(struct inode *, struct generic_acl_operations *, int, | ||
| 31 | const void *, size_t); | ||
| 32 | int generic_acl_init(struct inode *, struct inode *, | ||
| 33 | struct generic_acl_operations *); | ||
| 34 | int generic_acl_chmod(struct inode *, struct generic_acl_operations *); | ||
| 35 | 14 | ||
| 36 | #endif | 15 | #endif /* LINUX_GENERIC_ACL_H */ |
diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index deee7afd8d66..e164291fb3e7 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h | |||
| @@ -41,20 +41,4 @@ static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) | |||
| 41 | extern int init_tmpfs(void); | 41 | extern int init_tmpfs(void); |
| 42 | extern int shmem_fill_super(struct super_block *sb, void *data, int silent); | 42 | extern int shmem_fill_super(struct super_block *sb, void *data, int silent); |
| 43 | 43 | ||
| 44 | #ifdef CONFIG_TMPFS_POSIX_ACL | ||
| 45 | int shmem_check_acl(struct inode *, int); | ||
| 46 | int shmem_acl_init(struct inode *, struct inode *); | ||
| 47 | |||
| 48 | extern struct xattr_handler shmem_xattr_acl_access_handler; | ||
| 49 | extern struct xattr_handler shmem_xattr_acl_default_handler; | ||
| 50 | |||
| 51 | extern struct generic_acl_operations shmem_acl_ops; | ||
| 52 | |||
| 53 | #else | ||
| 54 | static inline int shmem_acl_init(struct inode *inode, struct inode *dir) | ||
| 55 | { | ||
| 56 | return 0; | ||
| 57 | } | ||
| 58 | #endif /* CONFIG_TMPFS_POSIX_ACL */ | ||
| 59 | |||
| 60 | #endif | 44 | #endif |
