summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorOleg Nesterov2013-09-11 23:20:14 +0200
committerLinus Torvalds2013-09-12 00:57:00 +0200
commitef0855d334e1e4af7c3e0c42146a8479ea14a5ab (patch)
tree5955b0424bb392e1949acc0ad5066cb461bef867 /mm/madvise.c
parentdrivers/block/swim.c: remove unnecessary platform_set_drvdata() (diff)
downloadkernel-qcow2-linux-ef0855d334e1e4af7c3e0c42146a8479ea14a5ab.tar.gz
kernel-qcow2-linux-ef0855d334e1e4af7c3e0c42146a8479ea14a5ab.tar.xz
kernel-qcow2-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