acl.h (d0e99511834b6828c960e978d9a8cb6e5731250d) | acl.h (13e83a4923bea7c4f2f6714030cb7e56d20ef7e5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 File: fs/ext4/acl.h 4 5 (C) 2001 Andreas Gruenbacher, <a.gruenbacher@computer.org> 6*/ 7 8#include <linux/posix_acl_xattr.h> --- 42 unchanged lines hidden (view full) --- 51 return s / sizeof(ext4_acl_entry) + 4; 52 } 53} 54 55#ifdef CONFIG_EXT4_FS_POSIX_ACL 56 57/* acl.c */ 58struct posix_acl *ext4_get_acl(struct inode *inode, int type, bool rcu); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 File: fs/ext4/acl.h 4 5 (C) 2001 Andreas Gruenbacher, <a.gruenbacher@computer.org> 6*/ 7 8#include <linux/posix_acl_xattr.h> --- 42 unchanged lines hidden (view full) --- 51 return s / sizeof(ext4_acl_entry) + 4; 52 } 53} 54 55#ifdef CONFIG_EXT4_FS_POSIX_ACL 56 57/* acl.c */ 58struct posix_acl *ext4_get_acl(struct inode *inode, int type, bool rcu); |
59int ext4_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry, | 59int ext4_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, |
60 struct posix_acl *acl, int type); 61extern int ext4_init_acl(handle_t *, struct inode *, struct inode *); 62 63#else /* CONFIG_EXT4_FS_POSIX_ACL */ 64#include <linux/sched.h> 65#define ext4_get_acl NULL 66#define ext4_set_acl NULL 67 68static inline int 69ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) 70{ 71 return 0; 72} 73#endif /* CONFIG_EXT4_FS_POSIX_ACL */ 74 | 60 struct posix_acl *acl, int type); 61extern int ext4_init_acl(handle_t *, struct inode *, struct inode *); 62 63#else /* CONFIG_EXT4_FS_POSIX_ACL */ 64#include <linux/sched.h> 65#define ext4_get_acl NULL 66#define ext4_set_acl NULL 67 68static inline int 69ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) 70{ 71 return 0; 72} 73#endif /* CONFIG_EXT4_FS_POSIX_ACL */ 74 |