Use the fact the vnodes are locked when operations are inflight.
authorclaudio <claudio@openbsd.org>
Mon, 4 Oct 2021 08:11:02 +0000 (08:11 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 4 Oct 2021 08:11:02 +0000 (08:11 +0000)
commitf490462837e44f66dd5153dc294cfdccbd04f4f3
tree5deac14e1e242e269a9040718d981c33bdfcf41c
parenteae74f8a363ab7e480d8f7e791b24243289d95e0
Use the fact the vnodes are locked when operations are inflight.
Remove the v_inflight member and alter the ffs and ext2fs sync code to
track inflight by checking if the node is locked or not (which it already
did before but for a different reason).
OK mpi@
sys/kern/vfs_vops.c
sys/sys/vnode.h
sys/ufs/ext2fs/ext2fs_vfsops.c
sys/ufs/ffs/ffs_vfsops.c