vfs_aio.c (121483) | vfs_aio.c (122747) |
---|---|
1/* 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 5 unchanged lines hidden (view full) --- 14 * of the author. This software is distributed AS-IS. 15 */ 16 17/* 18 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 19 */ 20 21#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 5 unchanged lines hidden (view full) --- 14 * of the author. This software is distributed AS-IS. 15 */ 16 17/* 18 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: head/sys/kern/vfs_aio.c 121483 2003-10-24 21:07:53Z jmg $"); | 22__FBSDID("$FreeBSD: head/sys/kern/vfs_aio.c 122747 2003-11-15 09:28:09Z phk $"); |
23 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/malloc.h> 27#include <sys/bio.h> 28#include <sys/buf.h> 29#include <sys/eventhandler.h> 30#include <sys/sysproto.h> --- 1066 unchanged lines hidden (view full) --- 1097 /* 1098 * Get a copy of the kva from the physical buffer. 1099 */ 1100 bp->b_dev = vp->v_rdev; 1101 error = 0; 1102 1103 bp->b_bcount = cb->aio_nbytes; 1104 bp->b_bufsize = cb->aio_nbytes; | 23 24#include <sys/param.h> 25#include <sys/systm.h> 26#include <sys/malloc.h> 27#include <sys/bio.h> 28#include <sys/buf.h> 29#include <sys/eventhandler.h> 30#include <sys/sysproto.h> --- 1066 unchanged lines hidden (view full) --- 1097 /* 1098 * Get a copy of the kva from the physical buffer. 1099 */ 1100 bp->b_dev = vp->v_rdev; 1101 error = 0; 1102 1103 bp->b_bcount = cb->aio_nbytes; 1104 bp->b_bufsize = cb->aio_nbytes; |
1105 bp->b_flags = B_PHYS; | |
1106 bp->b_iodone = aio_physwakeup; 1107 bp->b_saveaddr = bp->b_data; 1108 bp->b_data = (void *)(uintptr_t)cb->aio_buf; 1109 bp->b_offset = cb->aio_offset; 1110 bp->b_iooffset = cb->aio_offset; 1111 bp->b_blkno = btodb(cb->aio_offset); 1112 bp->b_iocmd = cb->aio_lio_opcode == LIO_WRITE ? BIO_WRITE : BIO_READ; 1113 --- 1191 unchanged lines hidden --- | 1105 bp->b_iodone = aio_physwakeup; 1106 bp->b_saveaddr = bp->b_data; 1107 bp->b_data = (void *)(uintptr_t)cb->aio_buf; 1108 bp->b_offset = cb->aio_offset; 1109 bp->b_iooffset = cb->aio_offset; 1110 bp->b_blkno = btodb(cb->aio_offset); 1111 bp->b_iocmd = cb->aio_lio_opcode == LIO_WRITE ? BIO_WRITE : BIO_READ; 1112 --- 1191 unchanged lines hidden --- |