mm: factor commit limit calculation
authorJerome Marchand <jmarchan@redhat.com>
Tue, 12 Nov 2013 23:08:31 +0000 (15:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:11 +0000 (12:09 +0900)
commit00619bcc44d6b779aa366130b354153c222e4380
tree5a885f81a351dfc6ca471823388d89a739406862
parent715ea41e60277f28f84d6c937737350e00955d56
mm: factor commit limit calculation

The same calculation is currently done in three differents places.
Factor that code so future changes has to be made at only one place.

[akpm@linux-foundation.org: uninline vm_commit_limit()]
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/meminfo.c
include/linux/mman.h
mm/mmap.c
mm/nommu.c
mm/util.c