thp: make deferred_split_scan() work again
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 5 Feb 2016 23:36:53 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Feb 2016 02:10:40 +0000 (18:10 -0800)
commitae026204a2b9060817503408906b35cefd824420
tree55e159233ebbc7265ae0b90a97ce6d687c1d6183
parent12352d3cae2cebe18805a91fab34b534d7444231
thp: make deferred_split_scan() work again

We need to iterate over split_queue, not local empty list to get
anything split from the shrinker.

Fixes: e3ae19535c66 ("thp: limit number of object to scan on deferred_split_scan()")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c