Deleted Added
full compact
vfs_cluster.c (297633) vfs_cluster.c (298069)
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

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

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
32 */
33
34#include <sys/cdefs.h>
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

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

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/kern/vfs_cluster.c 297633 2016-04-07 04:23:25Z trasz $");
35__FBSDID("$FreeBSD: head/sys/kern/vfs_cluster.c 298069 2016-04-15 16:10:11Z pfg $");
36
37#include "opt_debug_cluster.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/proc.h>
43#include <sys/bio.h>

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

363 tbp->b_iocmd = BIO_READ;
364 }
365 tbp->b_blkno = blkno;
366 if( (tbp->b_flags & B_MALLOC) ||
367 ((tbp->b_flags & B_VMIO) == 0) || (run <= 1) )
368 return tbp;
369
370 bp = trypbuf(&cluster_pbuf_freecnt);
36
37#include "opt_debug_cluster.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/proc.h>
43#include <sys/bio.h>

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

363 tbp->b_iocmd = BIO_READ;
364 }
365 tbp->b_blkno = blkno;
366 if( (tbp->b_flags & B_MALLOC) ||
367 ((tbp->b_flags & B_VMIO) == 0) || (run <= 1) )
368 return tbp;
369
370 bp = trypbuf(&cluster_pbuf_freecnt);
371 if (bp == 0)
371 if (bp == NULL)
372 return tbp;
373
374 /*
375 * We are synthesizing a buffer out of vm_page_t's, but
376 * if the block size is not page aligned then the starting
377 * address may not be either. Inherit the b_data offset
378 * from the original buffer.
379 */

--- 698 unchanged lines hidden ---
372 return tbp;
373
374 /*
375 * We are synthesizing a buffer out of vm_page_t's, but
376 * if the block size is not page aligned then the starting
377 * address may not be either. Inherit the b_data offset
378 * from the original buffer.
379 */

--- 698 unchanged lines hidden ---