xfs_dquot_item.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2000-2003 Silicon Graphics, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it would be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write the Free Software Foundation,
  16. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __XFS_DQUOT_ITEM_H__
  19. #define __XFS_DQUOT_ITEM_H__
  20. struct xfs_dquot;
  21. struct xfs_trans;
  22. struct xfs_mount;
  23. struct xfs_qoff_logitem;
  24. typedef struct xfs_dq_logitem {
  25. xfs_log_item_t qli_item; /* common portion */
  26. struct xfs_dquot *qli_dquot; /* dquot ptr */
  27. xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
  28. xfs_dq_logformat_t qli_format; /* logged structure */
  29. } xfs_dq_logitem_t;
  30. typedef struct xfs_qoff_logitem {
  31. xfs_log_item_t qql_item; /* common portion */
  32. struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
  33. xfs_qoff_logformat_t qql_format; /* logged structure */
  34. } xfs_qoff_logitem_t;
  35. extern void xfs_qm_dquot_logitem_init(struct xfs_dquot *);
  36. extern xfs_qoff_logitem_t *xfs_qm_qoff_logitem_init(struct xfs_mount *,
  37. struct xfs_qoff_logitem *, uint);
  38. extern xfs_qoff_logitem_t *xfs_trans_get_qoff_item(struct xfs_trans *,
  39. struct xfs_qoff_logitem *, uint);
  40. extern void xfs_trans_log_quotaoff_item(struct xfs_trans *,
  41. struct xfs_qoff_logitem *);
  42. #endif /* __XFS_DQUOT_ITEM_H__ */