4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
7 * Portions of this code from linux/fs/ext2/acl.h
9 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 #ifndef __F2FS_ACL_H__
16 #define __F2FS_ACL_H__
18 #include <linux/posix_acl_xattr.h>
20 #define F2FS_ACL_VERSION 0x0001
22 struct f2fs_acl_entry
{
28 struct f2fs_acl_entry_short
{
33 struct f2fs_acl_header
{
37 #ifdef CONFIG_F2FS_FS_POSIX_ACL
39 extern struct posix_acl
*f2fs_get_acl(struct inode
*, int);
40 extern int f2fs_acl_chmod(struct inode
*);
41 extern int f2fs_init_acl(struct inode
*, struct inode
*, struct page
*);
43 #define f2fs_check_acl NULL
44 #define f2fs_get_acl NULL
45 #define f2fs_set_acl NULL
47 static inline int f2fs_acl_chmod(struct inode
*inode
)
52 static inline int f2fs_init_acl(struct inode
*inode
, struct inode
*dir
,
58 #endif /* __F2FS_ACL_H__ */