7336d0e654f7a (Thomas Gleixner 2019-05-31 01:09:56 -0700 1) /* SPDX-License-Identifier: GPL-2.0-only */
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 2) /*
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 3) * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3a8a9a1034813 (Steven Whitehouse 2006-05-18 15:09:15 -0400 4) * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 5) */
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 6)
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 7) #ifndef __ACL_DOT_H__
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 8) #define __ACL_DOT_H__
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 9)
f2f7ba5237e2f (Steven Whitehouse 2006-09-05 10:39:21 -0400 10) #include "incore.h"
f2f7ba5237e2f (Steven Whitehouse 2006-09-05 10:39:21 -0400 11)
b00263d1cafdd (Bob Peterson 2014-03-19 09:10:21 -0400 12) #define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 13)
4e34e719e457f (Christoph Hellwig 2011-07-23 17:37:31 +0200 14) extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type);
1a39ba99b5d53 (Al Viro 2016-05-13 03:59:17 +0200 15) extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
549c7297717c3 (Christian Brauner 2021-01-21 14:19:43 +0100 16) extern int gfs2_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
549c7297717c3 (Christian Brauner 2021-01-21 14:19:43 +0100 17) struct posix_acl *acl, int type);
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 18)
b3b94faa5fe59 (David Teigland 2006-01-16 16:50:04 +0000 19) #endif /* __ACL_DOT_H__ */