Page MenuHomeFreeBSD

Minor improvements for vtruncbuf()
ClosedPublic

Authored by kib on Dec 31 2023, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 11 2024, 2:59 AM
Unknown Object (File)
Oct 2 2024, 12:30 AM
Unknown Object (File)
Oct 1 2024, 2:10 AM
Unknown Object (File)
Sep 14 2024, 5:59 PM
Unknown Object (File)
Sep 8 2024, 8:38 AM
Unknown Object (File)
Aug 29 2024, 12:01 AM
Unknown Object (File)
Aug 23 2024, 11:17 AM
Unknown Object (File)
Aug 7 2024, 3:16 PM
Subscribers

Details

Summary
vtruncbuf: add a comment explaining the purpose of the loop
vtruncbuf: improve the check for meta buffer

Revision e99215a614675 reorganized the code in vtruncbuf(), and moved
the logic to flush meta buffers into a dedicated loop. While doing it,
the condition was changed from bp->b_lblkno < 0 (to handle) into
bp->b_lblkno > 0 (to skip), which causes buffer at lblkno to needlessly
flush.

Diff Detail

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