diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-09-11 23:20:14 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 00:57:00 +0200 |
commit | ef0855d334e1e4af7c3e0c42146a8479ea14a5ab (patch) | |
tree | 5955b0424bb392e1949acc0ad5066cb461bef867 /mm/madvise.c | |
parent | drivers/block/swim.c: remove unnecessary platform_set_drvdata() (diff) | |
download | linux-ef0855d334e1e4af7c3e0c42146a8479ea14a5ab.tar.xz linux-ef0855d334e1e4af7c3e0c42146a8479ea14a5ab.zip |
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>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions