xfs_dquot_item.h 694 B

12345678910111213141516171819202122232425262728
  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_dq_logitem {
  12. struct xfs_log_item qli_item; /* common portion */
  13. struct xfs_dquot *qli_dquot; /* dquot ptr */
  14. xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
  15. /*
  16. * We use this spinlock to coordinate access to the li_buf pointer in
  17. * the log item and the qli_dirty flag.
  18. */
  19. spinlock_t qli_lock;
  20. bool qli_dirty; /* dirtied since last flush? */
  21. };
  22. void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
  23. #endif /* __XFS_DQUOT_ITEM_H__ */