Deleted Added
full compact
vfs_bio.c (43118) vfs_bio.c (43301)
1/*
2 * Copyright (c) 1994,1997 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Absolutely no warranty of function or purpose is made by the author
12 * John S. Dyson.
13 *
1/*
2 * Copyright (c) 1994,1997 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Absolutely no warranty of function or purpose is made by the author
12 * John S. Dyson.
13 *
14 * $Id: vfs_bio.c,v 1.197 1999/01/23 06:36:15 dillon Exp $
14 * $Id: vfs_bio.c,v 1.198 1999/01/24 00:51:11 dillon Exp $
15 */
16
17/*
18 * this file contains a new buffer I/O scheme implementing a coherent
19 * VM object and buffer cache scheme. Pains have been taken to make
20 * sure that the performance degradation associated with schemes such
21 * as this is not realized.
22 *

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

137SYSCTL_INT(_vfs, OID_AUTO, maxmallocbufspace, CTLFLAG_RW,
138 &maxbufmallocspace, 0, "");
139SYSCTL_INT(_vfs, OID_AUTO, bufmallocspace, CTLFLAG_RD,
140 &bufmallocspace, 0, "");
141SYSCTL_INT(_vfs, OID_AUTO, kvafreespace, CTLFLAG_RD,
142 &kvafreespace, 0, "");
143
144static LIST_HEAD(bufhashhdr, buf) bufhashtbl[BUFHSZ], invalhash;
15 */
16
17/*
18 * this file contains a new buffer I/O scheme implementing a coherent
19 * VM object and buffer cache scheme. Pains have been taken to make
20 * sure that the performance degradation associated with schemes such
21 * as this is not realized.
22 *

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

137SYSCTL_INT(_vfs, OID_AUTO, maxmallocbufspace, CTLFLAG_RW,
138 &maxbufmallocspace, 0, "");
139SYSCTL_INT(_vfs, OID_AUTO, bufmallocspace, CTLFLAG_RD,
140 &bufmallocspace, 0, "");
141SYSCTL_INT(_vfs, OID_AUTO, kvafreespace, CTLFLAG_RD,
142 &kvafreespace, 0, "");
143
144static LIST_HEAD(bufhashhdr, buf) bufhashtbl[BUFHSZ], invalhash;
145struct bqueues bufqueues[BUFFER_QUEUES] = {0};
145struct bqueues bufqueues[BUFFER_QUEUES] = { { 0 } };
146
147extern int vm_swap_size;
148
149#define BUF_MAXUSE 24
150
151#define VFS_BIO_NEED_ANY 1
152#define VFS_BIO_NEED_LOWLIMIT 2
153#define VFS_BIO_NEED_FREE 4

--- 2304 unchanged lines hidden ---
146
147extern int vm_swap_size;
148
149#define BUF_MAXUSE 24
150
151#define VFS_BIO_NEED_ANY 1
152#define VFS_BIO_NEED_LOWLIMIT 2
153#define VFS_BIO_NEED_FREE 4

--- 2304 unchanged lines hidden ---