mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 15:56:45 +07:00
854f82b1f6
AIL removal of the quotaoff start intent and free of both intents is hardcoded to the ->iop_committed() handler of the end intent. Factor out the start intent handling code so it can be used in a future patch to properly handle quotaoff errors. Use xfs_trans_ail_remove() instead of the _delete() variant to acquire the AIL lock and also handle cases where an intent might not reside in the AIL at the time of a failure. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2000-2003 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
#ifndef __XFS_DQUOT_ITEM_H__
|
|
#define __XFS_DQUOT_ITEM_H__
|
|
|
|
struct xfs_dquot;
|
|
struct xfs_trans;
|
|
struct xfs_mount;
|
|
struct xfs_qoff_logitem;
|
|
|
|
struct xfs_dq_logitem {
|
|
struct xfs_log_item qli_item; /* common portion */
|
|
struct xfs_dquot *qli_dquot; /* dquot ptr */
|
|
xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
|
|
};
|
|
|
|
struct xfs_qoff_logitem {
|
|
struct xfs_log_item qql_item; /* common portion */
|
|
struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
|
|
unsigned int qql_flags;
|
|
};
|
|
|
|
|
|
void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
|
|
struct xfs_qoff_logitem *xfs_qm_qoff_logitem_init(struct xfs_mount *mp,
|
|
struct xfs_qoff_logitem *start,
|
|
uint flags);
|
|
void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *);
|
|
struct xfs_qoff_logitem *xfs_trans_get_qoff_item(struct xfs_trans *tp,
|
|
struct xfs_qoff_logitem *startqoff,
|
|
uint flags);
|
|
void xfs_trans_log_quotaoff_item(struct xfs_trans *tp,
|
|
struct xfs_qoff_logitem *qlp);
|
|
|
|
#endif /* __XFS_DQUOT_ITEM_H__ */
|