pagemap: fix 32-bit pagemap regression
authorMatt Mackall <mpm@selenic.com>
Tue, 9 Dec 2008 21:14:21 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 13 Dec 2008 23:29:33 +0000 (15:29 -0800)
commit35b9d8e0aa1268072f0a9238d738558c64c77372
tree10e123ca6edf7993b59911d5b3e34ce1520d90d1
parentcb01c9ddcbb5a1c8049bacf1f145b402f0ce3a0a
pagemap: fix 32-bit pagemap regression

commit 49c50342c728344b79c8f9e8293637fe80ef5ad5 upstream.

The large pages fix from bcf8039ed45 broke 32-bit pagemap by pulling the
pagemap entry code out into a function with the wrong return type.
Pagemap entries are 64 bits on all systems and unsigned long is only 32
bits on 32-bit systems.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Reported-by: Doug Graham <dgraham@nortel.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/proc/task_mmu.c