vfs_bio.c (d00066a5f923073113bcb0213ca7a0a9a29b9561) | vfs_bio.c (61322a0a8affb0c41dcf441ea331f041e15879ff) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004 Poul-Henning Kamp 5 * Copyright (c) 1994,1997 John S. Dyson 6 * Copyright (c) 2013 The FreeBSD Foundation 7 * All rights reserved. 8 * --- 135 unchanged lines hidden (view full) --- 144#define BD_ASSERT_LOCKED(bd) mtx_assert(BD_LOCKPTR((bd)), MA_OWNED) 145#define BD_RUN_LOCKPTR(bd) (&(bd)->bd_run_lock) 146#define BD_RUN_LOCK(bd) mtx_lock(BD_RUN_LOCKPTR((bd))) 147#define BD_RUN_UNLOCK(bd) mtx_unlock(BD_RUN_LOCKPTR((bd))) 148#define BD_DOMAIN(bd) (bd - bdomain) 149 150static struct buf *buf; /* buffer header pool */ 151extern struct buf *swbuf; /* Swap buffer header pool. */ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004 Poul-Henning Kamp 5 * Copyright (c) 1994,1997 John S. Dyson 6 * Copyright (c) 2013 The FreeBSD Foundation 7 * All rights reserved. 8 * --- 135 unchanged lines hidden (view full) --- 144#define BD_ASSERT_LOCKED(bd) mtx_assert(BD_LOCKPTR((bd)), MA_OWNED) 145#define BD_RUN_LOCKPTR(bd) (&(bd)->bd_run_lock) 146#define BD_RUN_LOCK(bd) mtx_lock(BD_RUN_LOCKPTR((bd))) 147#define BD_RUN_UNLOCK(bd) mtx_unlock(BD_RUN_LOCKPTR((bd))) 148#define BD_DOMAIN(bd) (bd - bdomain) 149 150static struct buf *buf; /* buffer header pool */ 151extern struct buf *swbuf; /* Swap buffer header pool. */ |
152caddr_t unmapped_buf; | 152caddr_t __read_mostly unmapped_buf; |
153 154/* Used below and for softdep flushing threads in ufs/ffs/ffs_softdep.c */ 155struct proc *bufdaemonproc; 156 157static int inmem(struct vnode *vp, daddr_t blkno); 158static void vm_hold_free_pages(struct buf *bp, int newbsize); 159static void vm_hold_load_pages(struct buf *bp, vm_offset_t from, 160 vm_offset_t to); --- 5303 unchanged lines hidden --- | 153 154/* Used below and for softdep flushing threads in ufs/ffs/ffs_softdep.c */ 155struct proc *bufdaemonproc; 156 157static int inmem(struct vnode *vp, daddr_t blkno); 158static void vm_hold_free_pages(struct buf *bp, int newbsize); 159static void vm_hold_load_pages(struct buf *bp, vm_offset_t from, 160 vm_offset_t to); --- 5303 unchanged lines hidden --- |