blob: db9df710a3080c43a964c04d3869a1a208209916 [file] [log] [blame]
Dave Chinner0b61f8a2018-06-05 19:42:14 -07001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Nathan Scott4ce31212005-11-02 14:59:41 +11003 * Copyright (c) 2000-2003 Silicon Graphics, Inc.
4 * All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 */
6#ifndef __XFS_DQUOT_ITEM_H__
7#define __XFS_DQUOT_ITEM_H__
8
9struct xfs_dquot;
10struct xfs_trans;
11struct xfs_mount;
12struct xfs_qoff_logitem;
13
14typedef struct xfs_dq_logitem {
15 xfs_log_item_t qli_item; /* common portion */
16 struct xfs_dquot *qli_dquot; /* dquot ptr */
17 xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
Linus Torvalds1da177e2005-04-16 15:20:36 -070018} xfs_dq_logitem_t;
19
20typedef struct xfs_qoff_logitem {
21 xfs_log_item_t qql_item; /* common portion */
22 struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
Christoph Hellwigffda4e82013-12-13 11:34:08 +110023 unsigned int qql_flags;
Linus Torvalds1da177e2005-04-16 15:20:36 -070024} xfs_qoff_logitem_t;
25
26
27extern void xfs_qm_dquot_logitem_init(struct xfs_dquot *);
28extern xfs_qoff_logitem_t *xfs_qm_qoff_logitem_init(struct xfs_mount *,
29 struct xfs_qoff_logitem *, uint);
30extern xfs_qoff_logitem_t *xfs_trans_get_qoff_item(struct xfs_trans *,
31 struct xfs_qoff_logitem *, uint);
32extern void xfs_trans_log_quotaoff_item(struct xfs_trans *,
33 struct xfs_qoff_logitem *);
34
35#endif /* __XFS_DQUOT_ITEM_H__ */