diff options
author | alc <alc@FreeBSD.org> | 2007-09-27 04:21:59 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-09-27 04:21:59 +0000 |
commit | 9d3ffe57cefff26c40bcfe86213497c1af9e9be2 (patch) | |
tree | 6b7cecdc04aa30481a7ed30edd9cc6bb042741b9 /share/misc | |
parent | a4724ef3b4fc5854e1a7967115e32388061ea307 (diff) | |
download | FreeBSD-src-9d3ffe57cefff26c40bcfe86213497c1af9e9be2.zip FreeBSD-src-9d3ffe57cefff26c40bcfe86213497c1af9e9be2.tar.gz |
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)
Diffstat (limited to 'share/misc')
0 files changed, 0 insertions, 0 deletions