vfs_cluster.c (7daa3570e4485df3ae442c8f468f9b43b4cd88b0) | vfs_cluster.c (857b66d50529e867d79bb37f67797ae68bd97598) |
---|---|
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 --- 65 unchanged lines hidden (view full) --- 74static int read_max = 8; 75SYSCTL_INT(_vfs, OID_AUTO, read_max, CTLFLAG_RW, &read_max, 0, 76 "Cluster read-ahead max block count"); 77 78/* Page expended to mark partially backed buffers */ 79extern vm_page_t bogus_page; 80 81/* | 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 --- 65 unchanged lines hidden (view full) --- 74static int read_max = 8; 75SYSCTL_INT(_vfs, OID_AUTO, read_max, CTLFLAG_RW, &read_max, 0, 76 "Cluster read-ahead max block count"); 77 78/* Page expended to mark partially backed buffers */ 79extern vm_page_t bogus_page; 80 81/* |
82 * Number of physical bufs (pbufs) this subsystem is allowed. 83 * Manipulated by vm_pager.c 84 */ 85extern int cluster_pbuf_freecnt; 86 87/* | |
88 * Read data to a buf, including read-ahead if we find this to be beneficial. 89 * cluster_read replaces bread. 90 */ 91int 92cluster_read(vp, filesize, lblkno, size, cred, totread, seqcount, bpp) 93 struct vnode *vp; 94 u_quad_t filesize; 95 daddr_t lblkno; --- 892 unchanged lines hidden --- | 82 * Read data to a buf, including read-ahead if we find this to be beneficial. 83 * cluster_read replaces bread. 84 */ 85int 86cluster_read(vp, filesize, lblkno, size, cred, totread, seqcount, bpp) 87 struct vnode *vp; 88 u_quad_t filesize; 89 daddr_t lblkno; --- 892 unchanged lines hidden --- |