]> err.no Git - linux-2.6/commit
[PATCH] mm: mremap correct rmap accounting
authorHugh Dickins <hugh@veritas.com>
Mon, 29 Jan 2007 21:24:08 +0000 (21:24 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Jan 2007 16:33:32 +0000 (08:33 -0800)
commit701dfbc1cbdd42b814dd76a885c4b73f97011d08
tree4a8e8185616e7cc9c115de564bd2c6d626662217
parent8339f0008c47cdd921c73f6d53d5588b5484f93c
[PATCH] mm: mremap correct rmap accounting

Nick Piggin points out that page accounting on MIPS multiple ZERO_PAGEs
is not maintained by its move_pte, and could lead to freeing a ZERO_PAGE.

Instead of complicating that move_pte, just forget the minor optimization
when mremapping, and change the one thing which needed it for correctness
- filemap_xip use ZERO_PAGE(0) throughout instead of according to address.

[ "There is no block device driver one could use for XIP on mips
   platforms" - Carsten Otte ]

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-mips/pgtable.h
mm/filemap_xip.c
mm/mremap.c