Merge tag 'icc-5.4-rc1' of https://git.linaro.org/people/georgi.djakov/linux into...
[linux/fpc-iii.git] / fs / f2fs / acl.h
blobb96823c59b15a4c62f3bd00558cbc04cd9c96791
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * fs/f2fs/acl.h
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
8 * Portions of this code from linux/fs/ext2/acl.h
10 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
12 #ifndef __F2FS_ACL_H__
13 #define __F2FS_ACL_H__
15 #include <linux/posix_acl_xattr.h>
17 #define F2FS_ACL_VERSION 0x0001
19 struct f2fs_acl_entry {
20 __le16 e_tag;
21 __le16 e_perm;
22 __le32 e_id;
25 struct f2fs_acl_entry_short {
26 __le16 e_tag;
27 __le16 e_perm;
30 struct f2fs_acl_header {
31 __le32 a_version;
34 #ifdef CONFIG_F2FS_FS_POSIX_ACL
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
44 static inline int f2fs_init_acl(struct inode *inode, struct inode *dir,
45 struct page *ipage, struct page *dpage)
47 return 0;
49 #endif
50 #endif /* __F2FS_ACL_H__ */