1// SPDX-License-Identifier: GPL-2.0 2/* 3 * GPL HEADER START 4 * 5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 only, 9 * as published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License version 2 for more details (a copy is included 15 * in the LICENSE file that accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License 18 * version 2 along with this program; If not, see 19 * http://www.gnu.org/licenses/gpl-2.0.html 20 * 21 * GPL HEADER END 22 */ 23/* 24 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 25 * Use is subject to license terms. 26 */ 27/* 28 * This file is part of Lustre, http://www.lustre.org/ 29 * Lustre is a trademark of Sun Microsystems, Inc. 30 * 31 * lustre/include/lustre_acl.h 32 */ 33 34#ifndef _LUSTRE_ACL_H 35#define _LUSTRE_ACL_H 36 37#include <linux/fs.h> 38#include <linux/dcache.h> 39#include <linux/posix_acl_xattr.h> 40 41#define LUSTRE_POSIX_ACL_MAX_ENTRIES 32 42#define LUSTRE_POSIX_ACL_MAX_SIZE \ 43 (sizeof(struct posix_acl_xattr_header) + \ 44 LUSTRE_POSIX_ACL_MAX_ENTRIES * sizeof(struct posix_acl_xattr_entry)) 45 46#endif 47