]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the VI_BWAIT flag into no bo_flag element of bufobj and call it BO_WWAIT
authorphk <phk@FreeBSD.org>
Thu, 21 Oct 2004 15:53:54 +0000 (15:53 +0000)
committerphk <phk@FreeBSD.org>
Thu, 21 Oct 2004 15:53:54 +0000 (15:53 +0000)
commit3833976d1250bf118a46939f409012d87e558de6
tree9d355bca75100170618443d740a1312fd842af5d
parentfdf614c0bad1564664cac5105be08477d1bcdd72
Move the VI_BWAIT flag into no bo_flag element of bufobj and call it BO_WWAIT

Add bufobj_wref(), bufobj_wdrop() and bufobj_wwait() to handle the write
count on a bufobj.  Bufobj_wdrop() replaces vwakeup().

Use these functions all relevant places except in ffs_softdep.c where
the use if interlocked_sleep() makes this impossible.

Rename b_vnbufs to b_bobufs now that we touch all the relevant files anyway.
14 files changed:
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/kern/vfs_default.c
sys/kern/vfs_subr.c
sys/nfs4client/nfs4_vnops.c
sys/nfsclient/nfs_subs.c
sys/nfsclient/nfs_vnops.c
sys/sys/buf.h
sys/sys/bufobj.h
sys/sys/vnode.h
sys/ufs/ffs/ffs_rawread.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ffs/ffs_vnops.c
sys/vm/swap_pager.c