Dave Chinner | 0b61f8a | 2018-06-05 19:42:14 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Nathan Scott | 4ce3121 | 2005-11-02 14:59:41 +1100 | [diff] [blame] | 3 | * Copyright (c) 2000-2003 Silicon Graphics, Inc. |
| 4 | * All Rights Reserved. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __XFS_DQUOT_ITEM_H__ |
| 7 | #define __XFS_DQUOT_ITEM_H__ |
| 8 | |
| 9 | struct xfs_dquot; |
| 10 | struct xfs_trans; |
| 11 | struct xfs_mount; |
| 12 | struct xfs_qoff_logitem; |
| 13 | |
Pavel Reichl | fd8b81d | 2019-11-12 17:04:26 -0800 | [diff] [blame] | 14 | struct xfs_dq_logitem { |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 15 | struct xfs_log_item qli_item; /* common portion */ |
Pavel Reichl | fd8b81d | 2019-11-12 17:04:26 -0800 | [diff] [blame] | 16 | struct xfs_dquot *qli_dquot; /* dquot ptr */ |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 17 | xfs_lsn_t qli_flush_lsn; /* lsn at last flush */ |
Pavel Reichl | fd8b81d | 2019-11-12 17:04:26 -0800 | [diff] [blame] | 18 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 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 */ |
Christoph Hellwig | ffda4e8 | 2013-12-13 11:34:08 +1100 | [diff] [blame] | 23 | unsigned int qql_flags; |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 24 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
| 26 | |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 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); |
Brian Foster | 854f82b | 2020-03-16 14:26:09 -0700 | [diff] [blame] | 31 | void xfs_qm_qoff_logitem_relse(struct xfs_qoff_logitem *); |
Pavel Reichl | d0bdfb1 | 2019-11-12 17:04:27 -0800 | [diff] [blame] | 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); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | |
| 38 | #endif /* __XFS_DQUOT_ITEM_H__ */ |