Deleted Added
full compact
vfs_cluster.c (42957) vfs_cluster.c (43301)
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.77 1999/01/10 01:58:25 eivind Exp $
36 * $Id: vfs_cluster.c,v 1.78 1999/01/21 08:29:05 dillon Exp $
37 */
38
39#include "opt_debug_cluster.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/proc.h>

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

362 vp->v_maxio = DFLTPHYS;
363 inc = btodb(size);
364 for (bn = blkno, i = 0; i < run; ++i, bn += inc) {
365 if (i != 0) {
366 if ((bp->b_npages * PAGE_SIZE) +
367 round_page(size) > vp->v_maxio)
368 break;
369
37 */
38
39#include "opt_debug_cluster.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/proc.h>

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

362 vp->v_maxio = DFLTPHYS;
363 inc = btodb(size);
364 for (bn = blkno, i = 0; i < run; ++i, bn += inc) {
365 if (i != 0) {
366 if ((bp->b_npages * PAGE_SIZE) +
367 round_page(size) > vp->v_maxio)
368 break;
369
370 if (tbp = incore(vp, lbn + i)) {
370 if ((tbp = incore(vp, lbn + i)) != NULL) {
371 if (tbp->b_flags & B_BUSY)
372 break;
373
374 for (j = 0; j < tbp->b_npages; j++)
375 if (tbp->b_pages[j]->valid)
376 break;
377
378 if (j != tbp->b_npages)

--- 462 unchanged lines hidden ---
371 if (tbp->b_flags & B_BUSY)
372 break;
373
374 for (j = 0; j < tbp->b_npages; j++)
375 if (tbp->b_pages[j]->valid)
376 break;
377
378 if (j != tbp->b_npages)

--- 462 unchanged lines hidden ---