Date: Thu, 27 Sep 2007 04:22:00 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_object.c vm_page.c vm_page.h Message-ID: <200709270422.l8R4M0Cv042375@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2007-09-27 04:22:00 UTC
FreeBSD src repository
Modified files:
sys/vm vm_object.c vm_page.c vm_page.h
Log:
Correct an error of omission in the reimplementation of the page
cache: vm_object_page_remove() should convert any cached pages that
fall with the specified range to free pages. Otherwise, there could
be a problem if a file is first truncated and then regrown.
Specifically, some old data from prior to the truncation might reappear.
Generalize vm_page_cache_free() to support the conversion of either a
subset or the entirety of an object's cached pages.
Reported by: tegge
Reviewed by: tegge
Approved by: re (kensmith)
Revision Changes Path
1.385 +4 -2 src/sys/vm/vm_object.c
1.355 +43 -15 src/sys/vm/vm_page.c
1.152 +1 -1 src/sys/vm/vm_page.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709270422.l8R4M0Cv042375>
