cvs commit: src/sys/vm vm_object.c vm_page.c vm_page.h
Alan Cox
alc at FreeBSD.org
Wed Sep 26 21:22:04 PDT 2007
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
More information about the cvs-src
mailing list