Deleted Added
full compact
buf.h (291728) buf.h (292373)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)buf.h 8.9 (Berkeley) 3/30/95
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)buf.h 8.9 (Berkeley) 3/30/95
35 * $FreeBSD: head/sys/sys/buf.h 291728 2015-12-04 00:05:02Z benno $
35 * $FreeBSD: head/sys/sys/buf.h 292373 2015-12-16 21:30:45Z glebius $
36 */
37
38#ifndef _SYS_BUF_H_
39#define _SYS_BUF_H_
40
41#include <sys/bufobj.h>
42#include <sys/queue.h>
43#include <sys/lock.h>

--- 73 unchanged lines hidden (view full) ---

117 int b_dirtyoff; /* Offset in buffer of dirty region. */
118 int b_dirtyend; /* Offset of end of dirty region. */
119 caddr_t b_kvabase; /* base kva for buffer */
120 daddr_t b_lblkno; /* Logical block number. */
121 struct vnode *b_vp; /* Device vnode. */
122 struct ucred *b_rcred; /* Read credentials reference. */
123 struct ucred *b_wcred; /* Write credentials reference. */
124 union {
36 */
37
38#ifndef _SYS_BUF_H_
39#define _SYS_BUF_H_
40
41#include <sys/bufobj.h>
42#include <sys/queue.h>
43#include <sys/lock.h>

--- 73 unchanged lines hidden (view full) ---

117 int b_dirtyoff; /* Offset in buffer of dirty region. */
118 int b_dirtyend; /* Offset of end of dirty region. */
119 caddr_t b_kvabase; /* base kva for buffer */
120 daddr_t b_lblkno; /* Logical block number. */
121 struct vnode *b_vp; /* Device vnode. */
122 struct ucred *b_rcred; /* Read credentials reference. */
123 struct ucred *b_wcred; /* Write credentials reference. */
124 union {
125 TAILQ_ENTRY(buf) bu_freelist; /* (Q) */
125 TAILQ_ENTRY(buf) b_freelist; /* (Q) */
126 struct {
126 struct {
127 void (*pg_iodone)(void *, vm_page_t *, int, int);
128 int pg_reqpage;
129 } bu_pager;
130 } b_union;
131#define b_freelist b_union.bu_freelist
132#define b_pager b_union.bu_pager
127 void (*b_pgiodone)(void *, vm_page_t *, int, int);
128 int b_pgbefore;
129 int b_pgafter;
130 };
131 };
133 union cluster_info {
134 TAILQ_HEAD(cluster_list_head, buf) cluster_head;
135 TAILQ_ENTRY(buf) cluster_entry;
136 } b_cluster;
137 struct vm_page *b_pages[btoc(MAXPHYS)];
138 int b_npages;
139 struct workhead b_dep; /* (D) List of filesystem dependencies. */
140 void *b_fsprivate1;

--- 413 unchanged lines hidden ---
132 union cluster_info {
133 TAILQ_HEAD(cluster_list_head, buf) cluster_head;
134 TAILQ_ENTRY(buf) cluster_entry;
135 } b_cluster;
136 struct vm_page *b_pages[btoc(MAXPHYS)];
137 int b_npages;
138 struct workhead b_dep; /* (D) List of filesystem dependencies. */
139 void *b_fsprivate1;

--- 413 unchanged lines hidden ---