vfs_bio.c (313460) | vfs_bio.c (316073) |
---|---|
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: stable/11/sys/kern/vfs_bio.c 313460 2017-02-09 00:28:03Z markj $"); | 46__FBSDID("$FreeBSD: stable/11/sys/kern/vfs_bio.c 316073 2017-03-28 06:07:59Z kib $"); |
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> --- 3858 unchanged lines hidden (view full) --- 3913 vm_offset_t start, end; 3914 3915 if ((bp->bio_flags & BIO_TRANSIENT_MAPPING) != 0) { 3916 bp->bio_flags &= ~BIO_TRANSIENT_MAPPING; 3917 bp->bio_flags |= BIO_UNMAPPED; 3918 start = trunc_page((vm_offset_t)bp->bio_data); 3919 end = round_page((vm_offset_t)bp->bio_data + bp->bio_length); 3920 bp->bio_data = unmapped_buf; | 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> --- 3858 unchanged lines hidden (view full) --- 3913 vm_offset_t start, end; 3914 3915 if ((bp->bio_flags & BIO_TRANSIENT_MAPPING) != 0) { 3916 bp->bio_flags &= ~BIO_TRANSIENT_MAPPING; 3917 bp->bio_flags |= BIO_UNMAPPED; 3918 start = trunc_page((vm_offset_t)bp->bio_data); 3919 end = round_page((vm_offset_t)bp->bio_data + bp->bio_length); 3920 bp->bio_data = unmapped_buf; |
3921 pmap_qremove(start, OFF_TO_IDX(end - start)); | 3921 pmap_qremove(start, atop(end - start)); |
3922 vmem_free(transient_arena, start, end - start); 3923 atomic_add_int(&inflight_transient_maps, -1); 3924 } 3925 done = bp->bio_done; 3926 if (done == NULL) { 3927 mtxp = mtx_pool_find(mtxpool_sleep, bp); 3928 mtx_lock(mtxp); 3929 bp->bio_flags |= BIO_DONE; --- 1035 unchanged lines hidden --- | 3922 vmem_free(transient_arena, start, end - start); 3923 atomic_add_int(&inflight_transient_maps, -1); 3924 } 3925 done = bp->bio_done; 3926 if (done == NULL) { 3927 mtxp = mtx_pool_find(mtxpool_sleep, bp); 3928 mtx_lock(mtxp); 3929 bp->bio_flags |= BIO_DONE; --- 1035 unchanged lines hidden --- |