Merge tag 'for-5.8/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux/fpc-iii.git] / fs / xfs / xfs_dquot_item.h
blob2b86a43d7ce2ec943bb0b505db3834f33ed7ca19
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__
9 struct xfs_dquot;
10 struct xfs_trans;
11 struct xfs_mount;
12 struct xfs_qoff_logitem;
14 struct xfs_dq_logitem {
15 struct xfs_log_item qli_item; /* common portion */
16 struct xfs_dquot *qli_dquot; /* dquot ptr */
17 xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
20 struct xfs_qoff_logitem {
21 struct xfs_log_item qql_item; /* common portion */
22 struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
23 unsigned int qql_flags;
27 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
28 struct xfs_qoff_logitem *xfs_qm_qoff_logitem_init(struct xfs_mount *mp,
29 struct xfs_qoff_logitem *start,
30 uint flags);
31 void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *);
32 struct xfs_qoff_logitem *xfs_trans_get_qoff_item(struct xfs_trans *tp,
33 struct xfs_qoff_logitem *startqoff,
34 uint flags);
35 void xfs_trans_log_quotaoff_item(struct xfs_trans *tp,
36 struct xfs_qoff_logitem *qlp);
38 #endif /* __XFS_DQUOT_ITEM_H__ */