blob: cd180ca7c95916e32162d5a251752ae2a01f0988 [file] [log] [blame]
Thomas Gleixner7336d0e2019-05-31 01:09:56 -07001/* SPDX-License-Identifier: GPL-2.0-only */
David Teiglandb3b94fa2006-01-16 16:50:04 +00002/*
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
Steven Whitehouse3a8a9a12006-05-18 15:09:15 -04004 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
David Teiglandb3b94fa2006-01-16 16:50:04 +00005 */
6
7#ifndef __ACL_DOT_H__
8#define __ACL_DOT_H__
9
Steven Whitehousef2f7ba52006-09-05 10:39:21 -040010#include "incore.h"
11
Bob Petersonb00263d2014-03-19 09:10:21 -040012#define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
David Teiglandb3b94fa2006-01-16 16:50:04 +000013
Miklos Szeredi0cad6242021-08-18 22:08:24 +020014extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu);
Al Viro1a39ba92016-05-13 03:59:17 +020015extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
Christian Brauner549c7292021-01-21 14:19:43 +010016extern int gfs2_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
17 struct posix_acl *acl, int type);
David Teiglandb3b94fa2006-01-16 16:50:04 +000018
19#endif /* __ACL_DOT_H__ */