2
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
2
* Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4
4
* This program is free software; you can redistribute it and/or modify it
5
5
* under the terms of version 2 of the GNU General Public License as
6
6
* published by the Free Software Foundation.
8
8
* This program is distributed in the hope that it would be useful, but
9
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
12
* Further, this software is distributed without any warranty that it is
13
13
* free of the rightful claim of any third person regarding infringement
14
14
* or the like. Any license provided herein, whether implied or
15
15
* otherwise, applies only to this software file. Patent licenses, if
16
16
* any, provided herein do not apply to combinations of this program with
17
17
* other software, or any other product whatsoever.
19
19
* You should have received a copy of the GNU General Public License along
20
20
* with this program; if not, write the Free Software Foundation, Inc., 59
21
21
* Temple Place - Suite 330, Boston MA 02111-1307, USA.
23
23
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24
24
* Mountain View, CA 94043, or:
28
* For further information regarding this notice, see:
28
* For further information regarding this notice, see:
30
30
* http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32
32
#ifndef __XFS_BUF_ITEM_H__
77
77
#define XFS_BLI_CANCEL 0x2
79
* This flag indicates that the buffer contains on disk
80
* user or group dquots and may require special recovery handling.
79
* This flag indicates that the buffer contains on disk
80
* user or group dquots and may require special recovery handling.
82
82
#define XFS_BLI_UDQUOT_BUF 0x4
83
83
/* #define XFS_BLI_PDQUOT_BUF 0x8 */
105
106
struct xfs_mount;
107
struct xfs_buf_log_item;
109
#if defined(XFS_BLI_TRACE)
110
#define XFS_BLI_TRACE_SIZE 32
112
void xfs_buf_item_trace(char *, struct xfs_buf_log_item *);
114
#define xfs_buf_item_trace(id, bip)
108
118
* This is the in core log item structure used to track information
130
140
* items which have been canceled and should not be replayed.
132
142
typedef struct xfs_buf_cancel {
133
xfs_daddr_t bc_blkno;
143
xfs_daddr_t bc_blkno;
136
146
struct xfs_buf_cancel *bc_next;
137
147
} xfs_buf_cancel_t;
139
#define XFS_BLI_TRACE_SIZE 32
142
#if defined(XFS_ALL_TRACE)
143
#define XFS_BLI_TRACE
150
#if defined(XFS_BLI_TRACE)
151
void xfs_buf_item_trace(char *, xfs_buf_log_item_t *);
153
#define xfs_buf_item_trace(id, bip)
156
149
void xfs_buf_item_init(struct xfs_buf *, struct xfs_mount *);
157
150
void xfs_buf_item_relse(struct xfs_buf *);
158
151
void xfs_buf_item_log(xfs_buf_log_item_t *, uint, uint);
159
152
uint xfs_buf_item_dirty(xfs_buf_log_item_t *);
160
int xfs_buf_item_bits(uint *, uint, uint);
161
int xfs_buf_item_contig_bits(uint *, uint, uint);
162
int xfs_buf_item_next_bit(uint *, uint, uint);
163
153
void xfs_buf_attach_iodone(struct xfs_buf *,
164
154
void(*)(struct xfs_buf *, xfs_log_item_t *),
165
155
xfs_log_item_t *);