Deleted Added
full compact
vfs_cluster.c (25135) vfs_cluster.c (26664)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 * Modifications/enhancements:
5 * Copyright (c) 1995 John S. Dyson. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 * Modifications/enhancements:
5 * Copyright (c) 1995 John S. Dyson. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
36 * $Id: vfs_cluster.c,v 1.45 1997/04/18 14:12:17 dfr Exp $
36 * $Id: vfs_cluster.c,v 1.46 1997/04/25 11:14:00 dfr Exp $
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/proc.h>
42#include <sys/buf.h>
43#include <sys/vnode.h>
44#include <sys/mount.h>

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

720 bp->b_pages[bp->b_npages] = m;
721 bp->b_npages++;
722 }
723 }
724 }
725 bp->b_bcount += size;
726 bp->b_bufsize += size;
727
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/proc.h>
42#include <sys/buf.h>
43#include <sys/vnode.h>
44#include <sys/mount.h>

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

720 bp->b_pages[bp->b_npages] = m;
721 bp->b_npages++;
722 }
723 }
724 }
725 bp->b_bcount += size;
726 bp->b_bufsize += size;
727
728 --numdirtybuffers;
728 tbp->b_flags &= ~(B_READ | B_DONE | B_ERROR | B_DELWRI);
729 tbp->b_flags |= B_ASYNC;
730 s = splbio();
731 reassignbuf(tbp, tbp->b_vp); /* put on clean list */
732 ++tbp->b_vp->v_numoutput;
733 splx(s);
734 TAILQ_INSERT_TAIL(&bp->b_cluster.cluster_head,
735 tbp, b_cluster.cluster_entry);

--- 44 unchanged lines hidden ---
729 tbp->b_flags &= ~(B_READ | B_DONE | B_ERROR | B_DELWRI);
730 tbp->b_flags |= B_ASYNC;
731 s = splbio();
732 reassignbuf(tbp, tbp->b_vp); /* put on clean list */
733 ++tbp->b_vp->v_numoutput;
734 splx(s);
735 TAILQ_INSERT_TAIL(&bp->b_cluster.cluster_head,
736 tbp, b_cluster.cluster_entry);

--- 44 unchanged lines hidden ---