This source file includes following definitions.
- f2fs_init_acl
1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __F2FS_ACL_H__
13 #define __F2FS_ACL_H__
14
15 #include <linux/posix_acl_xattr.h>
16
17 #define F2FS_ACL_VERSION 0x0001
18
19 struct f2fs_acl_entry {
20 __le16 e_tag;
21 __le16 e_perm;
22 __le32 e_id;
23 };
24
25 struct f2fs_acl_entry_short {
26 __le16 e_tag;
27 __le16 e_perm;
28 };
29
30 struct f2fs_acl_header {
31 __le32 a_version;
32 };
33
34 #ifdef CONFIG_F2FS_FS_POSIX_ACL
35
36 extern struct posix_acl *f2fs_get_acl(struct inode *, int);
37 extern int f2fs_set_acl(struct inode *, struct posix_acl *, int);
38 extern int f2fs_init_acl(struct inode *, struct inode *, struct page *,
39 struct page *);
40 #else
41 #define f2fs_get_acl NULL
42 #define f2fs_set_acl NULL
43
44 static inline int f2fs_init_acl(struct inode *inode, struct inode *dir,
45 struct page *ipage, struct page *dpage)
46 {
47 return 0;
48 }
49 #endif
50 #endif