xfs_super.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef __XFS_SUPER_H__
  7. #define __XFS_SUPER_H__
  8. #include <linux/exportfs.h>
  9. #ifdef CONFIG_XFS_QUOTA
  10. extern int xfs_qm_init(void);
  11. extern void xfs_qm_exit(void);
  12. #else
  13. # define xfs_qm_init() (0)
  14. # define xfs_qm_exit() do { } while (0)
  15. #endif
  16. #ifdef CONFIG_XFS_POSIX_ACL
  17. # define XFS_ACL_STRING "ACLs, "
  18. # define set_posix_acl_flag(sb) ((sb)->s_flags |= SB_POSIXACL)
  19. #else
  20. # define XFS_ACL_STRING
  21. # define set_posix_acl_flag(sb) do { } while (0)
  22. #endif
  23. #define XFS_SECURITY_STRING "security attributes, "
  24. #ifdef CONFIG_XFS_RT
  25. # define XFS_REALTIME_STRING "realtime, "
  26. #else
  27. # define XFS_REALTIME_STRING
  28. #endif
  29. #ifdef CONFIG_XFS_ONLINE_SCRUB
  30. # define XFS_SCRUB_STRING "scrub, "
  31. #else
  32. # define XFS_SCRUB_STRING
  33. #endif
  34. #ifdef DEBUG
  35. # define XFS_DBG_STRING "debug"
  36. #else
  37. # define XFS_DBG_STRING "no debug"
  38. #endif
  39. #define XFS_VERSION_STRING "SGI XFS"
  40. #define XFS_BUILD_OPTIONS XFS_ACL_STRING \
  41. XFS_SECURITY_STRING \
  42. XFS_REALTIME_STRING \
  43. XFS_SCRUB_STRING \
  44. XFS_DBG_STRING /* DBG must be last */
  45. struct xfs_inode;
  46. struct xfs_mount;
  47. struct xfs_buftarg;
  48. struct block_device;
  49. extern void xfs_quiesce_attr(struct xfs_mount *mp);
  50. extern void xfs_flush_inodes(struct xfs_mount *mp);
  51. extern void xfs_blkdev_issue_flush(struct xfs_buftarg *);
  52. extern xfs_agnumber_t xfs_set_inode_alloc(struct xfs_mount *,
  53. xfs_agnumber_t agcount);
  54. extern const struct export_operations xfs_export_operations;
  55. extern const struct xattr_handler *xfs_xattr_handlers[];
  56. extern const struct quotactl_ops xfs_quotactl_operations;
  57. extern void xfs_reinit_percpu_counters(struct xfs_mount *mp);
  58. extern struct workqueue_struct *xfs_discard_wq;
  59. #define XFS_M(sb) ((struct xfs_mount *)((sb)->s_fs_info))
  60. #endif /* __XFS_SUPER_H__ */