vfs_aio.c (137029) | vfs_aio.c (137186) |
---|---|
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 137029 2004-10-29 07:16:37Z phk $"); | 22__FBSDID("$FreeBSD: head/sys/kern/vfs_aio.c 137186 2004-11-04 07:59:57Z 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> --- 1074 unchanged lines hidden (view full) --- 1105 1106 /* Create and build a buffer header for a transfer. */ 1107 bp = (struct buf *)getpbuf(NULL); 1108 BUF_KERNPROC(bp); 1109 1110 /* 1111 * Get a copy of the kva from the physical buffer. 1112 */ | 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> --- 1074 unchanged lines hidden (view full) --- 1105 1106 /* Create and build a buffer header for a transfer. */ 1107 bp = (struct buf *)getpbuf(NULL); 1108 BUF_KERNPROC(bp); 1109 1110 /* 1111 * Get a copy of the kva from the physical buffer. 1112 */ |
1113 bp->b_dev = vp->v_rdev; | |
1114 error = 0; 1115 1116 bp->b_bcount = cb->aio_nbytes; 1117 bp->b_bufsize = cb->aio_nbytes; 1118 bp->b_iodone = aio_physwakeup; 1119 bp->b_saveaddr = bp->b_data; 1120 bp->b_data = (void *)(uintptr_t)cb->aio_buf; 1121 bp->b_offset = cb->aio_offset; --- 1205 unchanged lines hidden --- | 1113 error = 0; 1114 1115 bp->b_bcount = cb->aio_nbytes; 1116 bp->b_bufsize = cb->aio_nbytes; 1117 bp->b_iodone = aio_physwakeup; 1118 bp->b_saveaddr = bp->b_data; 1119 bp->b_data = (void *)(uintptr_t)cb->aio_buf; 1120 bp->b_offset = cb->aio_offset; --- 1205 unchanged lines hidden --- |