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