xfs_acl.h 778 B

12345678910111213141516171819202122232425262728
  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. void xfs_forget_acl(struct inode *inode, const char *name);
  15. #else
  16. static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
  17. {
  18. return NULL;
  19. }
  20. # define xfs_set_acl NULL
  21. static inline void xfs_forget_acl(struct inode *inode, const char *name)
  22. {
  23. }
  24. #endif /* CONFIG_XFS_POSIX_ACL */
  25. #endif /* __XFS_ACL_H__ */