]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: rename is_mlocked_vma() to mlocked_vma_newpage()
authorYing Han <yinghan@google.com>
Thu, 3 May 2012 05:43:49 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:29 +0000 (15:46 +1000)
commit9f2850e9629e55954103cec6740ba73e4d677d95
treef0c8a74af43d7a01359b24fecc63032e36f51fa1
parentefb24b085e6be0ef736509272355d37d46a9555f
mm: rename is_mlocked_vma() to mlocked_vma_newpage()

Andrew pointed out that the is_mlocked_vma() is misnamed.  A function with
name like that would expect bool return and no side-effects.

Since it is called on the fault path for new page, rename it in this
patch.

Signed-off-by: Ying Han <yinghan@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujtisu.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/internal.h
mm/vmscan.c