blob: 07c0d4947527f33f46b433686e4a996dbb4aa984 [file] [log] [blame]
Vyacheslav Dubeyko2c920572013-09-11 14:24:28 -07001/*
2 * linux/fs/hfsplus/acl.h
3 *
4 * Vyacheslav Dubeyko <slava@dubeyko.com>
5 *
6 * Handler for Posix Access Control Lists (ACLs) support.
7 */
8
9#include <linux/posix_acl_xattr.h>
10
11#ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
12
13/* posix_acl.c */
14struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
15extern int hfsplus_posix_acl_chmod(struct inode *);
16extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
17
18#else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
19#define hfsplus_get_posix_acl NULL
20
21static inline int hfsplus_posix_acl_chmod(struct inode *inode)
22{
23 return 0;
24}
25
26static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
27{
28 return 0;
29}
30#endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */