syncer vnode: add VOP_GETWRITEMOUNT() definition explicitly

Since syncer vnode vector does not provide a fallback to the default
one, its VOP_GETWRITEMOUNT() implementation implicitly returned
EOPNOTSUPP, which means that syncer ignored suspension.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2023-04-16 20:04:53 +03:00
parent d8a096621b
commit 7aeea73e30

View file

@ -4986,6 +4986,7 @@ static struct vop_vector sync_vnodeops = {
.vop_bypass = VOP_EOPNOTSUPP,
.vop_close = sync_close,
.vop_fsync = sync_fsync,
.vop_getwritemount = vop_stdgetwritemount,
.vop_inactive = sync_inactive,
.vop_need_inactive = vop_stdneed_inactive,
.vop_reclaim = sync_reclaim,