HomeFreeBSD

msdosfs: correct handling of vnode pager size on file extension error

Description

msdosfs: correct handling of vnode pager size on file extension error

If extension fails, vnode pager recorded size might be left increased.
Only update vnode pager when extension is past the point of no rollback.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38549

Details

Provenance
kibAuthored on Feb 10 2023, 4:58 AM
Reviewer
markj
Differential Revision
D38549: msdosfs deextend: validate pages of the partial buffer
Parents
rG020e8a4d0609: allocbuf(): convert direct panic() calls to KASSERT()s
Branches
Unknown
Tags
Unknown