]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - fs/xfs/xfs_dquot_item.h
Merge tag 'hyperv-next-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyper...
[mirror_ubuntu-jammy-kernel.git] / fs / xfs / xfs_dquot_item.h
CommitLineData
0b61f8a4 1// SPDX-License-Identifier: GPL-2.0
1da177e4 2/*
4ce3121f
NS
3 * Copyright (c) 2000-2003 Silicon Graphics, Inc.
4 * All Rights Reserved.
1da177e4
LT
5 */
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
fd8b81db 14struct xfs_dq_logitem {
d0bdfb10 15 struct xfs_log_item qli_item; /* common portion */
fd8b81db 16 struct xfs_dquot *qli_dquot; /* dquot ptr */
d0bdfb10 17 xfs_lsn_t qli_flush_lsn; /* lsn at last flush */
fd8b81db 18};
1da177e4 19
d0bdfb10
PR
20struct 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 */
ffda4e83 23 unsigned int qql_flags;
d0bdfb10 24};
1da177e4
LT
25
26
d0bdfb10
PR
27void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
28struct xfs_qoff_logitem *xfs_qm_qoff_logitem_init(struct xfs_mount *mp,
29 struct xfs_qoff_logitem *start,
30 uint flags);
854f82b1 31void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *);
d0bdfb10
PR
32struct xfs_qoff_logitem *xfs_trans_get_qoff_item(struct xfs_trans *tp,
33 struct xfs_qoff_logitem *startqoff,
34 uint flags);
35void xfs_trans_log_quotaoff_item(struct xfs_trans *tp,
36 struct xfs_qoff_logitem *qlp);
1da177e4
LT
37
38#endif /* __XFS_DQUOT_ITEM_H__ */