]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
On pageout, in vnode generic pager, for partially dirty page, only
authorkib <kib@FreeBSD.org>
Fri, 2 Feb 2018 11:56:30 +0000 (11:56 +0000)
committerkib <kib@FreeBSD.org>
Fri, 2 Feb 2018 11:56:30 +0000 (11:56 +0000)
commit773ad4ba114f32c061d4ff7ec4070f3f3ce1d25c
treea95290a5cebd5f3a46f492811b9a9bc28344321a
parentca864f3d258646a9c1f8ba4a1d244c4f5a6d6292
On pageout, in vnode generic pager, for partially dirty page, only
clear dirty bits for completely invalid blocks.

Otherwise we might not write out the last chunk that is shorter than
512 bytes, if the file end is not aligned on disk block boundary.
This become important after the r324794.

PR: 225586
Reported by: tris_vern@hotmail.com
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
sys/vm/vnode_pager.c