Linux Audio

Check our new training course

Loading...
v3.15
 
 1/*
 2 * Copyright (c) 2000-2003 Silicon Graphics, Inc.
 3 * All Rights Reserved.
 4 *
 5 * This program is free software; you can redistribute it and/or
 6 * modify it under the terms of the GNU General Public License as
 7 * published by the Free Software Foundation.
 8 *
 9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18#ifndef __XFS_DQUOT_ITEM_H__
19#define __XFS_DQUOT_ITEM_H__
20
21struct xfs_dquot;
22struct xfs_trans;
23struct xfs_mount;
24struct xfs_qoff_logitem;
25
26typedef struct xfs_dq_logitem {
27	xfs_log_item_t		 qli_item;	   /* common portion */
28	struct xfs_dquot	*qli_dquot;	   /* dquot ptr */
29	xfs_lsn_t		 qli_flush_lsn;	   /* lsn at last flush */
30} xfs_dq_logitem_t;
31
32typedef struct xfs_qoff_logitem {
33	xfs_log_item_t		 qql_item;	/* common portion */
34	struct xfs_qoff_logitem *qql_start_lip; /* qoff-start logitem, if any */
35	unsigned int		qql_flags;
36} xfs_qoff_logitem_t;
 
 
37
38
39extern void		   xfs_qm_dquot_logitem_init(struct xfs_dquot *);
40extern xfs_qoff_logitem_t *xfs_qm_qoff_logitem_init(struct xfs_mount *,
41					struct xfs_qoff_logitem *, uint);
42extern xfs_qoff_logitem_t *xfs_trans_get_qoff_item(struct xfs_trans *,
43					struct xfs_qoff_logitem *, uint);
44extern void		   xfs_trans_log_quotaoff_item(struct xfs_trans *,
45					struct xfs_qoff_logitem *);
46
47#endif	/* __XFS_DQUOT_ITEM_H__ */
v6.13.7
 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__
 8
 9struct xfs_dquot;
10struct xfs_trans;
11struct xfs_mount;
 
12
13struct xfs_dq_logitem {
14	struct xfs_log_item	qli_item;	/* common portion */
15	struct xfs_dquot	*qli_dquot;	/* dquot ptr */
16	xfs_lsn_t		qli_flush_lsn;	/* lsn at last flush */
 
17
18	/*
19	 * We use this spinlock to coordinate access to the li_buf pointer in
20	 * the log item and the qli_dirty flag.
21	 */
22	spinlock_t		qli_lock;
23	bool			qli_dirty;	/* dirtied since last flush? */
24};
25
26void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
 
 
 
 
 
 
 
27
28#endif	/* __XFS_DQUOT_ITEM_H__ */