License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / fs / hfsplus / acl.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
2c92057e
VD
2/*
3 * linux/fs/hfsplus/acl.h
4 *
5 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 *
7 * Handler for Posix Access Control Lists (ACLs) support.
8 */
9
10#include <linux/posix_acl_xattr.h>
11
12#ifdef CONFIG_HFSPLUS_FS_POSIX_ACL
13
14/* posix_acl.c */
15struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type);
b0a7ab57
CH
16int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
17 int type);
2c92057e
VD
18extern int hfsplus_init_posix_acl(struct inode *, struct inode *);
19
20#else /* CONFIG_HFSPLUS_FS_POSIX_ACL */
21#define hfsplus_get_posix_acl NULL
b0a7ab57 22#define hfsplus_set_posix_acl NULL
2c92057e
VD
23
24static inline int hfsplus_init_posix_acl(struct inode *inode, struct inode *dir)
25{
26 return 0;
27}
28#endif /* CONFIG_HFSPLUS_FS_POSIX_ACL */