xfs_acl.h 721 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2001-2005 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef __XFS_ACL_H__
  7. #define __XFS_ACL_H__
  8. struct inode;
  9. struct posix_acl;
  10. #ifdef CONFIG_XFS_POSIX_ACL
  11. extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
  12. extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
  13. extern int __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
  14. #else
  15. static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
  16. {
  17. return NULL;
  18. }
  19. # define xfs_set_acl NULL
  20. #endif /* CONFIG_XFS_POSIX_ACL */
  21. extern void xfs_forget_acl(struct inode *inode, const char *name, int xflags);
  22. #endif /* __XFS_ACL_H__ */