Page MenuHomeFreeBSD

Minor improvements for vtruncbuf()
ClosedPublic

Authored by kib on Dec 31 2023, 8:57 PM.
Tags
None
Referenced Files
F174703324: D43261.diff
Mon, Oct 5, 8:38 AM
Unknown Object (File)
Thu, Oct 1, 8:13 PM
Unknown Object (File)
Sun, Sep 20, 10:32 PM
Unknown Object (File)
Fri, Sep 18, 7:55 AM
Unknown Object (File)
Wed, Sep 16, 8:18 AM
Unknown Object (File)
Tue, Sep 15, 7:26 PM
Unknown Object (File)
Fri, Sep 11, 4:07 AM
Unknown Object (File)
Tue, Sep 8, 6:24 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