vfs_bio.c (253327) | vfs_bio.c (254025) |
---|---|
1/*- 2 * Copyright (c) 2004 Poul-Henning Kamp 3 * Copyright (c) 1994,1997 John S. Dyson 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Portions of this software were developed by Konstantin Belousov 8 * under sponsorship from the FreeBSD Foundation. --- 29 unchanged lines hidden (view full) --- 38 * Author: John S. Dyson 39 * Significant help during the development and debugging phases 40 * had been provided by David Greenman, also of the FreeBSD core team. 41 * 42 * see man buf(9) for more info. 43 */ 44 45#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Poul-Henning Kamp 3 * Copyright (c) 1994,1997 John S. Dyson 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Portions of this software were developed by Konstantin Belousov 8 * under sponsorship from the FreeBSD Foundation. --- 29 unchanged lines hidden (view full) --- 38 * Author: John S. Dyson 39 * Significant help during the development and debugging phases 40 * had been provided by David Greenman, also of the FreeBSD core team. 41 * 42 * see man buf(9) for more info. 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/kern/vfs_bio.c 253327 2013-07-13 19:36:18Z kib $"); | 46__FBSDID("$FreeBSD: head/sys/kern/vfs_bio.c 254025 2013-08-07 06:21:20Z jeff $"); |
47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/bio.h> 51#include <sys/conf.h> 52#include <sys/buf.h> 53#include <sys/devicestat.h> 54#include <sys/eventhandler.h> --- 796 unchanged lines hidden (view full) --- 851 * emergency reserve. 852 */ 853 lofreebuffers = nbuf / 18 + 5; 854 hifreebuffers = 2 * lofreebuffers; 855 numfreebuffers = nbuf; 856 857 bogus_page = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | 858 VM_ALLOC_NORMAL | VM_ALLOC_WIRED); | 47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/bio.h> 51#include <sys/conf.h> 52#include <sys/buf.h> 53#include <sys/devicestat.h> 54#include <sys/eventhandler.h> --- 796 unchanged lines hidden (view full) --- 851 * emergency reserve. 852 */ 853 lofreebuffers = nbuf / 18 + 5; 854 hifreebuffers = 2 * lofreebuffers; 855 numfreebuffers = nbuf; 856 857 bogus_page = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | 858 VM_ALLOC_NORMAL | VM_ALLOC_WIRED); |
859 unmapped_buf = (caddr_t)kmem_alloc_nofault(kernel_map, MAXPHYS); | 859 unmapped_buf = (caddr_t)kva_alloc(MAXPHYS); |
860} 861 862#ifdef INVARIANTS 863static inline void 864vfs_buf_check_mapped(struct buf *bp) 865{ 866 867 KASSERT((bp->b_flags & B_UNMAPPED) == 0, --- 3733 unchanged lines hidden --- | 860} 861 862#ifdef INVARIANTS 863static inline void 864vfs_buf_check_mapped(struct buf *bp) 865{ 866 867 KASSERT((bp->b_flags & B_UNMAPPED) == 0, --- 3733 unchanged lines hidden --- |