]> Git Repo - linux.git/commit
mempolicy: apply page table walker on queue_pages_range()
authorNaoya Horiguchi <[email protected]>
Wed, 11 Feb 2015 23:28:03 +0000 (15:28 -0800)
committerLinus Torvalds <[email protected]>
Thu, 12 Feb 2015 01:06:06 +0000 (17:06 -0800)
commit6f4576e3687b1f93145b89fce49d6a8fec9e7dc2
treef84dfb7f9496634082ef6d37fda4cb759f24f415
parent1757bbd9c5918a9c1a8757141763a23f2e446caa
mempolicy: apply page table walker on queue_pages_range()

queue_pages_range() does page table walking in its own way now, but there
is some code duplicate.  This patch applies page table walker to reduce
lines of code.

queue_pages_range() has to do some precheck to determine whether we really
walk over the vma or just skip it.  Now we have test_walk() callback in
mm_walk for this purpose, so we can do this replacement cleanly.
queue_pages_test_walk() depends on not only the current vma but also the
previous one, so queue_pages->prev is introduced to remember it.

Signed-off-by: Naoya Horiguchi <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mempolicy.c
This page took 0.05335 seconds and 4 git commands to generate.