Thomas Gleixner | 1a59d1b8 | 2019-05-27 08:55:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Dave Kleikamp | 63f83c9 | 2006-10-02 09:55:27 -0500 | [diff] [blame] | 3 | * Copyright (C) International Business Machines Corp., 2002 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | */ |
| 5 | #ifndef _H_JFS_ACL |
| 6 | #define _H_JFS_ACL |
| 7 | |
| 8 | #ifdef CONFIG_JFS_POSIX_ACL |
| 9 | |
Christoph Hellwig | 4e34e71 | 2011-07-23 17:37:31 +0200 | [diff] [blame] | 10 | struct posix_acl *jfs_get_acl(struct inode *inode, int type); |
Christoph Hellwig | 2cc6a5a | 2013-12-20 05:16:51 -0800 | [diff] [blame] | 11 | int jfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); |
Dave Kleikamp | 4f4b401 | 2005-09-01 09:02:43 -0500 | [diff] [blame] | 12 | int jfs_init_acl(tid_t, struct inode *, struct inode *); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Dave Kleikamp | 4f4b401 | 2005-09-01 09:02:43 -0500 | [diff] [blame] | 14 | #else |
| 15 | |
| 16 | static inline int jfs_init_acl(tid_t tid, struct inode *inode, |
| 17 | struct inode *dir) |
| 18 | { |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #endif /* _H_JFS_ACL */ |