summaryrefslogtreecommitdiffstats
path: root/drivers/base/node.c
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2009-12-15 02:59:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:20 +0100
commitcaed0f486e582eeeb6e3546417fd758230fe4ad9 (patch)
tree203d4724dcfaae3ad4b349e1971bb3efc0da7db2 /drivers/base/node.c
parentmm: fix section mismatch in memory_hotplug.c (diff)
downloadlinux-caed0f486e582eeeb6e3546417fd758230fe4ad9.tar.xz
linux-caed0f486e582eeeb6e3546417fd758230fe4ad9.zip
mm: simplify try_to_unmap_one()
SWAP_MLOCK mean "We marked the page as PG_MLOCK, please move it to unevictable-lru". So, following code is easy confusable. if (vma->vm_flags & VM_LOCKED) { ret = SWAP_MLOCK; goto out_unmap; } Plus, if the VMA doesn't have VM_LOCKED, We don't need to check the needed of calling mlock_vma_page(). Also, add some commentary to try_to_unmap_one(). Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base/node.c')
0 files changed, 0 insertions, 0 deletions