vfs_cluster.c (92363) | vfs_cluster.c (92723) |
---|---|
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 * $FreeBSD: head/sys/kern/vfs_cluster.c 92363 2002-03-15 18:49:47Z mckusick $ | 36 * $FreeBSD: head/sys/kern/vfs_cluster.c 92723 2002-03-19 21:25:46Z alfred $ |
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> --- 14 unchanged lines hidden (view full) --- 59static int rcluster= 0; 60SYSCTL_INT(_debug, OID_AUTO, rcluster, CTLFLAG_RW, &rcluster, 0, 61 "Debug VFS clustering code"); 62#endif 63 64static MALLOC_DEFINE(M_SEGMENT, "cluster_save buffer", "cluster_save buffer"); 65 66static struct cluster_save * | 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> --- 14 unchanged lines hidden (view full) --- 59static int rcluster= 0; 60SYSCTL_INT(_debug, OID_AUTO, rcluster, CTLFLAG_RW, &rcluster, 0, 61 "Debug VFS clustering code"); 62#endif 63 64static MALLOC_DEFINE(M_SEGMENT, "cluster_save buffer", "cluster_save buffer"); 65 66static struct cluster_save * |
67 cluster_collectbufs __P((struct vnode *vp, struct buf *last_bp)); | 67 cluster_collectbufs(struct vnode *vp, struct buf *last_bp); |
68static struct buf * | 68static struct buf * |
69 cluster_rbuild __P((struct vnode *vp, u_quad_t filesize, daddr_t lbn, 70 daddr64_t blkno, long size, int run, struct buf *fbp)); | 69 cluster_rbuild(struct vnode *vp, u_quad_t filesize, daddr_t lbn, 70 daddr64_t blkno, long size, int run, struct buf *fbp); |
71 72static int write_behind = 1; 73SYSCTL_INT(_vfs, OID_AUTO, write_behind, CTLFLAG_RW, &write_behind, 0, 74 "Cluster write-behind; 0: disable, 1: enable, 2: backed off"); 75 76/* Page expended to mark partially backed buffers */ 77extern vm_page_t bogus_page; 78 --- 931 unchanged lines hidden --- | 71 72static int write_behind = 1; 73SYSCTL_INT(_vfs, OID_AUTO, write_behind, CTLFLAG_RW, &write_behind, 0, 74 "Cluster write-behind; 0: disable, 1: enable, 2: backed off"); 75 76/* Page expended to mark partially backed buffers */ 77extern vm_page_t bogus_page; 78 --- 931 unchanged lines hidden --- |