blob: 7ae389a7a36660685c8a57e8a245c02aef095a8e [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Dave Kleikamp63f83c92006-10-02 09:55:27 -05003 * Copyright (C) International Business Machines Corp., 2002
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 */
5#ifndef _H_JFS_ACL
6#define _H_JFS_ACL
7
8#ifdef CONFIG_JFS_POSIX_ACL
9
Christoph Hellwig4e34e712011-07-23 17:37:31 +020010struct posix_acl *jfs_get_acl(struct inode *inode, int type);
Christian Brauner549c7292021-01-21 14:19:43 +010011int jfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
12 struct posix_acl *acl, int type);
Dave Kleikamp4f4b4012005-09-01 09:02:43 -050013int jfs_init_acl(tid_t, struct inode *, struct inode *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
Dave Kleikamp4f4b4012005-09-01 09:02:43 -050015#else
16
17static inline int jfs_init_acl(tid_t tid, struct inode *inode,
18 struct inode *dir)
19{
20 return 0;
21}
22
23#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#endif /* _H_JFS_ACL */