]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: Add ioflag to VOP_DEALLOCATE(9)
authorKa Ho Ng <khng@FreeBSD.org>
Thu, 12 Aug 2021 14:58:52 +0000 (22:58 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Thu, 12 Aug 2021 15:03:49 +0000 (23:03 +0800)
commita638dc4ebc8eaa90a87ee053b7104ee4511f4491
treec39304ac9f90bfb487fb83c996e501d9b79da2e4
parentce92f5a91b161c85e0a7e37cc754e3c28074281a
vfs: Add ioflag to VOP_DEALLOCATE(9)

The addition of ioflag allows callers passing
IO_SYNC/IO_DATASYNC/IO_DIRECT down to the file system implementation.
The vop_stddeallocate fallback implementation is updated to pass the
ioflag to the file system implementation. vn_deallocate(9) internally is
also changed to pass ioflag to the VOP_DEALLOCATE call.

Sponsored by: The FreeBSD Foundation
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D31500
share/man/man9/VOP_DEALLOCATE.9
share/man/man9/vn_deallocate.9
sys/kern/vfs_default.c
sys/kern/vfs_vnops.c
sys/kern/vnode_if.src