Page MenuHomeFreeBSD

vfs: yield in vn_deallocate_impl() loop
ClosedPublic

Authored by khng on Aug 27 2021, 10:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 4, 11:04 AM
Unknown Object (File)
Sun, Dec 28, 5:50 AM
Unknown Object (File)
Sun, Dec 28, 1:28 AM
Unknown Object (File)
Fri, Dec 26, 12:19 AM
Unknown Object (File)
Dec 14 2025, 12:09 AM
Unknown Object (File)
Nov 28 2025, 4:04 PM
Unknown Object (File)
Nov 28 2025, 4:39 AM
Unknown Object (File)
Nov 26 2025, 6:23 AM
Subscribers

Details

Summary

Yield at the end of each loop iteration if there are remaining works as
indicated by the value of *len updated by VOP_DEALLOCATE. Without this,
when calling vop_stddeallocate to zero a large region, the
implementation only zerofills a relatively small chunk and return.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable