]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
thp: improve order in lru list for split huge page
authorShaohua Li <shaohua.li@intel.com>
Fri, 16 Dec 2011 04:50:40 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:44:03 +0000 (18:44 +1100)
commita862274bd9b5a12e1a9e5a13beb6d4047cd094a1
treeff8c90c98e29b45f907fbe42dbe2a1fc34fb7e07
parent47d377854e3436e3468b42aaa341c22b0d5d22be
thp: improve order in lru list for split huge page

Put the tail subpages of an isolated hugepage under splitting in the
lru reclaim head as they supposedly should be isolated too next.

Queues the subpages in physical order in the lru for non isolated
hugepages under splitting. That might provide some theoretical cache
benefit to the buddy allocator later.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c
mm/swap.c