Add descrip_check_write_mp() helper
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 28 Dec 2022 18:13:01 +0000 (20:13 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 29 Dec 2022 20:55:39 +0000 (22:55 +0200)
commit37b9fb169686e867987c8a1a9868f81137b9df2b
tree254d1aa0bc05e70c725033de0baf1560b155b1f8
parent4ac8f4067096a9d4a00e41cd53bd5c4fa295fd15
Add descrip_check_write_mp() helper

... which verifies that given file table does not have file descriptors
referencing vnodes on the specified mount point.  It is up to the caller
to ensure that the check is not racy.

Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37896
sys/kern/kern_descrip.c
sys/sys/filedesc.h