xref: /openbmc/linux/fs/gfs2/acl.h (revision b181f7029bd71238ac2754ce7052dffd69432085)
17336d0e6SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2b3b94faaSDavid Teigland /*
3b3b94faaSDavid Teigland  * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
43a8a9a10SSteven Whitehouse  * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
5b3b94faaSDavid Teigland  */
6b3b94faaSDavid Teigland 
7b3b94faaSDavid Teigland #ifndef __ACL_DOT_H__
8b3b94faaSDavid Teigland #define __ACL_DOT_H__
9b3b94faaSDavid Teigland 
10f2f7ba52SSteven Whitehouse #include "incore.h"
11f2f7ba52SSteven Whitehouse 
12b00263d1SBob Peterson #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
13b3b94faaSDavid Teigland 
14*d312fbf6SAndreas Gruenbacher struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu);
15*d312fbf6SAndreas Gruenbacher int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16*d312fbf6SAndreas Gruenbacher int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
17549c7297SChristian Brauner 		 struct posix_acl *acl, int type);
18b3b94faaSDavid Teigland 
19b3b94faaSDavid Teigland #endif /* __ACL_DOT_H__ */
20