blob: 61353a1501c53ba0072c098516b581d6523df0ee [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
Christoph Hellwig4e34e712011-07-23 17:37:31 +020014extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type);
Al Viro1a39ba92016-05-13 03:59:17 +020015extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
Christoph Hellwige01580b2013-12-20 05:16:52 -080016extern int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
David Teiglandb3b94fa2006-01-16 16:50:04 +000017
18#endif /* __ACL_DOT_H__ */