acl.h (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) acl.h (0cad6246621b5887d5b33fea84219d2a71f2f99a)
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>

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

50 return -1;
51 return s / sizeof(ext4_acl_entry) + 4;
52 }
53}
54
55#ifdef CONFIG_EXT4_FS_POSIX_ACL
56
57/* acl.c */
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>

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

50 return -1;
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);
58struct posix_acl *ext4_get_acl(struct inode *inode, int type, bool rcu);
59int ext4_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
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
59int ext4_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
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