xref: /OK3568_Linux_fs/kernel/fs/gfs2/acl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
4*4882a593Smuzhiyun  * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifndef __ACL_DOT_H__
8*4882a593Smuzhiyun #define __ACL_DOT_H__
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include "incore.h"
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type);
15*4882a593Smuzhiyun extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16*4882a593Smuzhiyun extern int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #endif /* __ACL_DOT_H__ */
19