mm: mempolicy: turn vma_set_policy() into vma_dup_policy()
authorOleg Nesterov <oleg@redhat.com>
Wed, 11 Sep 2013 21:20:14 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:00 +0000 (15:57 -0700)
commitef0855d334e1e4af7c3e0c42146a8479ea14a5ab
tree5955b0424bb392e1949acc0ad5066cb461bef867
parentc07303c0af38ffb1e5fd9b5ff37d0798298a7acf
mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

Simple cleanup.  Every user of vma_set_policy() does the same work, this
looks a bit annoying imho.  And the new trivial helper which does
mpol_dup() + vma_set_policy() to simplify the callers.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mempolicy.h
kernel/fork.c
mm/mempolicy.c
mm/mmap.c