Deleted Added
full compact
kern_physio.c (137029) kern_physio.c (137186)
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 4 unchanged lines hidden (view full) ---

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. Modifications may be freely made to this file if the above conditions
17 * are met.
18 */
19
20#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 4 unchanged lines hidden (view full) ---

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. Modifications may be freely made to this file if the above conditions
17 * are met.
18 */
19
20#include <sys/cdefs.h>
21__FBSDID("$FreeBSD: head/sys/kern/kern_physio.c 137029 2004-10-29 07:16:37Z phk $");
21__FBSDID("$FreeBSD: head/sys/kern/kern_physio.c 137186 2004-11-04 07:59:57Z phk $");
22
23#include <sys/param.h>
24#include <sys/systm.h>
25#include <sys/bio.h>
26#include <sys/buf.h>
27#include <sys/conf.h>
28#include <sys/proc.h>
29#include <sys/uio.h>

--- 26 unchanged lines hidden (view full) ---

56
57 for (i = 0; i < uio->uio_iovcnt; i++) {
58 while (uio->uio_iov[i].iov_len) {
59 bp->b_flags = 0;
60 if (uio->uio_rw == UIO_READ)
61 bp->b_iocmd = BIO_READ;
62 else
63 bp->b_iocmd = BIO_WRITE;
22
23#include <sys/param.h>
24#include <sys/systm.h>
25#include <sys/bio.h>
26#include <sys/buf.h>
27#include <sys/conf.h>
28#include <sys/proc.h>
29#include <sys/uio.h>

--- 26 unchanged lines hidden (view full) ---

56
57 for (i = 0; i < uio->uio_iovcnt; i++) {
58 while (uio->uio_iov[i].iov_len) {
59 bp->b_flags = 0;
60 if (uio->uio_rw == UIO_READ)
61 bp->b_iocmd = BIO_READ;
62 else
63 bp->b_iocmd = BIO_WRITE;
64 bp->b_dev = dev;
65 bp->b_iodone = bdone;
66 bp->b_data = uio->uio_iov[i].iov_base;
67 bp->b_bcount = uio->uio_iov[i].iov_len;
68 bp->b_offset = uio->uio_offset;
69 bp->b_iooffset = uio->uio_offset;
70 bp->b_saveaddr = sa;
71
72 /* Don't exceed drivers iosize limit */

--- 52 unchanged lines hidden ---
64 bp->b_iodone = bdone;
65 bp->b_data = uio->uio_iov[i].iov_base;
66 bp->b_bcount = uio->uio_iov[i].iov_len;
67 bp->b_offset = uio->uio_offset;
68 bp->b_iooffset = uio->uio_offset;
69 bp->b_saveaddr = sa;
70
71 /* Don't exceed drivers iosize limit */

--- 52 unchanged lines hidden ---