Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
0004  * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
0005  */
0006 
0007 #ifndef __ACL_DOT_H__
0008 #define __ACL_DOT_H__
0009 
0010 #include "incore.h"
0011 
0012 #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
0013 
0014 extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu);
0015 extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
0016 extern int gfs2_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
0017             struct posix_acl *acl, int type);
0018 
0019 #endif /* __ACL_DOT_H__ */