]> 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>
Wed, 14 May 2014 00:02:12 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:12 +0000 (10:02 +1000)
commit6dbe2747796899c9c302fb67e4bdcb1ca14a538c
tree36296f764808512eab9cbc7a47fcac94bcf6d955
parent894878f70476deaca209750445d5c6d370180a43
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.

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