diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2015-07-29 02:26:57 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2015-07-29 02:26:57 +0000 |
commit | 98082691bbd38c008e72e5fefe0a6ffde24af09f (patch) | |
tree | e9966ad4053c5c0df0210f4462f86f0738d97db8 /sys/vm | |
parent | 006a388bb64106d24d6e8065b8547ff6ec3c06f0 (diff) | |
download | src-98082691bbd38c008e72e5fefe0a6ffde24af09f.tar.gz src-98082691bbd38c008e72e5fefe0a6ffde24af09f.zip |
- Make 'struct buf *buf' private to vfs_bio.c. Having a global variable
'buf' is inconvenient and has lead me to some irritating to discover
bugs over the years. It also makes it more challenging to refactor
the buf allocation system.
- Move swbuf and declare it as an extern in vfs_bio.c. This is still
not perfect but better than it was before.
- Eliminate the unused ffs function that relied on knowledge of the buf
array.
- Move the shutdown code that iterates over the buf array into vfs_bio.c.
Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=285993
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index a42061c0417b..40d7d4e43ac7 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -86,6 +86,8 @@ __FBSDID("$FreeBSD$"); int cluster_pbuf_freecnt = -1; /* unlimited to begin with */ +struct buf *swbuf; + static int dead_pager_getpages(vm_object_t, vm_page_t *, int, int); static vm_object_t dead_pager_alloc(void *, vm_ooffset_t, vm_prot_t, vm_ooffset_t, struct ucred *); |