summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorperseant <perseant@NetBSD.org>2000-11-17 19:14:41 +0000
committerperseant <perseant@NetBSD.org>2000-11-17 19:14:41 +0000
commit31fc62d4e9ccbf65714c906f7541184cb84580b6 (patch)
tree6700ae9e57c4d90ef96b74e13916d77a2ffee77d /sys/dev
parent42681a6a9fd08db7be11180041bd11ed91e1a84f (diff)
Correct accounting of lfs_avail, locked_queue_count, and locked_queue_bytes.
(PR #11468). In the case of fragment allocation, check to see if enough space is available before extending a fragment already scheduled for writing. The locked_queue_* variables indicate the number of buffer headers and bytes, respectively, that are unavailable to getnewbuf() because they are locked up waiting for LFS to flush them; make sure that that is actually what we're counting, i.e., never count malloced buffers, and always use b_bufsize instead of b_bcount. If DEBUG is defined, the periodic calls to lfs_countlocked will now complain if either counter is incorrect. (In the future lfs_countlocked will not need to be called at all if DEBUG is not defined.)
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions