From: Hugh Dickins Date: Mon, 29 Jan 2007 21:24:08 +0000 (+0000) Subject: [PATCH] mm: mremap correct rmap accounting X-Git-Tag: v2.6.20-rc7~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=701dfbc1cbdd42b814dd76a885c4b73f97011d08;p=pandora-kernel.git [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 Cc: Nick Piggin Cc: Andrew Morton Cc: Ralf Baechle Cc: Carsten Otte Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed