Deleted Added
full compact
vfs_bio.c (2411) vfs_bio.c (2422)
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
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
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 *
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
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
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 * $Id: vfs_bio.c,v 1.9 1994/08/18 22:35:06 wollman Exp $
19 * $Id: vfs_bio.c,v 1.10 1994/08/30 18:19:11 davidg Exp $
20 */
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/kernel.h>
25#include <sys/proc.h>
26#include <sys/vnode.h>
27#include <sys/buf.h>

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

603 int s;
604 s = splbio();
605 bp->b_flags |= B_DONE;
606
607 if ((bp->b_flags & B_READ) == 0) {
608 vwakeup(bp);
609 }
610
20 */
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/kernel.h>
25#include <sys/proc.h>
26#include <sys/vnode.h>
27#include <sys/buf.h>

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

603 int s;
604 s = splbio();
605 bp->b_flags |= B_DONE;
606
607 if ((bp->b_flags & B_READ) == 0) {
608 vwakeup(bp);
609 }
610
611#ifdef BOUNCE_BUFFERS
611 if (bp->b_flags & B_BOUNCE)
612 vm_bounce_free(bp);
612 if (bp->b_flags & B_BOUNCE)
613 vm_bounce_free(bp);
614#endif
613
614 /* call optional completion function if requested */
615 if (bp->b_flags & B_CALL) {
616 bp->b_flags &= ~B_CALL;
617 (*bp->b_iodone)(bp);
618 splx(s);
619 return;
620 }

--- 128 unchanged lines hidden ---
615
616 /* call optional completion function if requested */
617 if (bp->b_flags & B_CALL) {
618 bp->b_flags &= ~B_CALL;
619 (*bp->b_iodone)(bp);
620 splx(s);
621 return;
622 }

--- 128 unchanged lines hidden ---