]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: fold mlocked_vma_newpage() into its only call site
authorJianyu Zhan <nasa4836@gmail.com>
Thu, 22 May 2014 00:43:15 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:15 +0000 (10:43 +1000)
commit93af25c8b378788f3c313e0cb07af89adf51671e
tree391c6ee1134371ea1c747288fc6b53f528c50ac2
parent5d57eea68e5712dd3482e05ddaa90bf46b9c48bf
mm: fold mlocked_vma_newpage() into its only call site

In previous commit(mm: use the light version __mod_zone_page_state in
mlocked_vma_newpage()) a irq-unsafe __mod_zone_page_state is used.  And as
suggested by Andrew, to reduce the risks that new call sites incorrectly
using mlocked_vma_newpage() without knowing they are adding racing, this
patch folds mlocked_vma_newpage() into its only call site,
page_add_new_anon_rmap, to make it open-cocded for people to know what is
going on.

Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: Hugh Dickins <hughd@google.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/rmap.c