]> git.neil.brown.name Git - history.git/commit
[PATCH] fix madvise(MADV_DONTNEED) for nonlinear vmas
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Apr 2004 00:22:03 +0000 (17:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 20 Apr 2004 00:22:03 +0000 (17:22 -0700)
commitd614d3153f8acc606f0c0644831b7c0d359a6b2c
tree4eca55e721735885f8d0ec8bcc38944a7e6a1410
parente8b338d65b58d871751253d3357cda7143053040
[PATCH] fix madvise(MADV_DONTNEED) for nonlinear vmas

From: Hugh Dickins <hugh@veritas.com>

Jamie points out that madvise(MADV_DONTNEED) should unmap pages from a
nonlinear area in such a way that the nonlinear offsets are preserved if the
pages do turn out to be needed later after all, instead of reverting them to
linearity: needs to pass down a zap_details block.

(But this still leaves mincore unaware of nonlinear vmas: bigger job.)
include/linux/mm.h
mm/madvise.c
mm/memory.c