xfs_dquot_item.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2000-2003 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #ifndef __XFS_DQUOT_ITEM_H__
  7. #define __XFS_DQUOT_ITEM_H__
  8. struct xfs_dquot;
  9. struct xfs_trans;
  10. struct xfs_mount;
  11. struct xfs_qoff_logitem;
  12. struct xfs_dq_logitem {
  13. struct xfs_log_item qli_item; /* common portion */
  14. struct xfs_dquot *qli_dquot; /* dquot ptr */
  15. xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
  16. };
  17. struct xfs_qoff_logitem {
  18. struct xfs_log_item qql_item; /* common portion */
  19. struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
  20. unsigned int qql_flags;
  21. };
  22. void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
  23. struct xfs_qoff_logitem *xfs_qm_qoff_logitem_init(struct xfs_mount *mp,
  24. struct xfs_qoff_logitem *start,
  25. uint flags);
  26. void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *);
  27. struct xfs_qoff_logitem *xfs_trans_get_qoff_item(struct xfs_trans *tp,
  28. struct xfs_qoff_logitem *startqoff,
  29. uint flags);
  30. void xfs_trans_log_quotaoff_item(struct xfs_trans *tp,
  31. struct xfs_qoff_logitem *qlp);
  32. #endif /* __XFS_DQUOT_ITEM_H__ */