Merge tag 'batadv-net-for-davem-20180717' of git://git.open-mesh.org/linux-merge
[linux-2.6-block.git] / fs / xfs / xfs_acl.h
CommitLineData
0b61f8a4 1// SPDX-License-Identifier: GPL-2.0
1da177e4 2/*
7b718769
NS
3 * Copyright (c) 2001-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
1da177e4
LT
5 */
6#ifndef __XFS_ACL_H__
7#define __XFS_ACL_H__
8
ef14f0c1
CH
9struct inode;
10struct posix_acl;
1da177e4 11
1da177e4 12#ifdef CONFIG_XFS_POSIX_ACL
ef14f0c1 13extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
2401dc29 14extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
8ba35875 15extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
1da177e4 16#else
a5a7bbcc
MT
17static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
18{
19 return NULL;
20}
2401dc29 21# define xfs_set_acl NULL
ef14f0c1 22#endif /* CONFIG_XFS_POSIX_ACL */
47e1bf64
AG
23
24extern void xfs_forget_acl(struct inode *inode, const char *name, int xflags);
25
1da177e4 26#endif /* __XFS_ACL_H__ */