]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If the last page of the file is partially full and whole valid
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 14 Sep 2013 10:11:38 +0000 (10:11 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 14 Sep 2013 10:11:38 +0000 (10:11 +0000)
commit196beb53597c7f328bf31034397007e494ce7421
treef37a78f4d81e6169576aba18f93a523010b92d84
parent77e306c5e0f315c3644ca7e436be61a54ad1e3f7
If the last page of the file is partially full and whole valid
portion is invalidated, invalidate the whole page.  Otherwise,
partially valid page appears on a page queue, which is wrong.  This
could only happen for the last page, because only then buffer which
triggered invalidation could not cover the whole page.

Reported and tested by: pho (previous version)
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
Approved by: re (delphij)
MFC after: 2 weeks
sys/vm/vm_page.c