diff options
author | jeff <jeff@FreeBSD.org> | 2015-07-29 02:26:57 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2015-07-29 02:26:57 +0000 |
commit | 44267026a04d5bba6872796d13bd9f9e83d859fe (patch) | |
tree | e9966ad4053c5c0df0210f4462f86f0738d97db8 /sbin | |
parent | 03740b1f15c083c9058fad53a6043321b852a200 (diff) | |
download | FreeBSD-src-44267026a04d5bba6872796d13bd9f9e83d859fe.zip FreeBSD-src-44267026a04d5bba6872796d13bd9f9e83d859fe.tar.gz |
- 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
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions