jfs_acl.h 572 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) International Business Machines Corp., 2002
  4. */
  5. #ifndef _H_JFS_ACL
  6. #define _H_JFS_ACL
  7. #ifdef CONFIG_JFS_POSIX_ACL
  8. struct posix_acl *jfs_get_acl(struct inode *inode, int type, bool rcu);
  9. int jfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
  10. struct posix_acl *acl, int type);
  11. int jfs_init_acl(tid_t, struct inode *, struct inode *);
  12. #else
  13. static inline int jfs_init_acl(tid_t tid, struct inode *inode,
  14. struct inode *dir)
  15. {
  16. return 0;
  17. }
  18. #endif
  19. #endif /* _H_JFS_ACL */