blob: 9f8f92dd6f84b34db149d6afdfe94adbdc6c077d [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);
Christoph Hellwig2cc6a5a2013-12-20 05:16:51 -080011int jfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
Dave Kleikamp4f4b4012005-09-01 09:02:43 -050012int jfs_init_acl(tid_t, struct inode *, struct inode *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Dave Kleikamp4f4b4012005-09-01 09:02:43 -050014#else
15
16static inline int jfs_init_acl(tid_t tid, struct inode *inode,
17 struct inode *dir)
18{
19 return 0;
20}
21
22#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif /* _H_JFS_ACL */