mm: deduplicate memory overcommitment code
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Thu, 17 Mar 2016 21:18:50 +0000 (14:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Mar 2016 22:09:34 +0000 (15:09 -0700)
commit39a1aa8e194ab67983de3b9d0b204ccee12e689a
tree66e70a955436cd15a170b848fdba9563bf30cb37
parentea606cf5d8df370e7932460dfd960b21f20e7c6d
mm: deduplicate memory overcommitment code

Currently we have two copies of the same code which implements memory
overcommitment logic.  Let's move it into mm/util.c and hence avoid
duplication.  No functional changes here.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c
mm/nommu.c
mm/util.c