mm: fix atomic_t overflow in vm
authorAlan Cox <alan@redhat.com>
Fri, 23 May 2008 20:04:31 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:09 +0000 (09:56 -0700)
commit80119ef5c8153e0a6cc5edf00c083dc98a9bd348
treea2af11a3991b1bebe9d764ab6d4d28891e86eda2
parent6c7c6afbb8c0e60d32a563cae7c6889211e9d9d8
mm: fix atomic_t overflow in vm

The atomic_t type is 32bit but a 64bit system can have more than 2^32
pages of virtual address space available.  Without this we overflow on
ludicrously large mappings

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_misc.c
include/linux/mman.h
mm/mmap.c
mm/nommu.c
mm/swap.c