2019-05-27 06:55:05 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2006-10-02 14:55:27 +00:00
|
|
|
* Copyright (C) International Business Machines Corp., 2002
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
#ifndef _H_JFS_ACL
|
|
|
|
#define _H_JFS_ACL
|
|
|
|
|
|
|
|
#ifdef CONFIG_JFS_POSIX_ACL
|
|
|
|
|
2021-08-18 20:08:24 +00:00
|
|
|
struct posix_acl *jfs_get_acl(struct inode *inode, int type, bool rcu);
|
2023-01-13 11:49:20 +00:00
|
|
|
int jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
2021-01-21 13:19:43 +00:00
|
|
|
struct posix_acl *acl, int type);
|
2005-09-01 14:02:43 +00:00
|
|
|
int jfs_init_acl(tid_t, struct inode *, struct inode *);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-09-01 14:02:43 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
static inline int jfs_init_acl(tid_t tid, struct inode *inode,
|
|
|
|
struct inode *dir)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _H_JFS_ACL */
|