]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove __GFP_NO_KSWAPD
authorRik van Riel <riel@redhat.com>
Fri, 7 Sep 2012 00:18:00 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:08 +0000 (15:36 +1000)
commit542e9f13fe4c2b97c1bc4d0147130d20403f53e7
tree130d892c8cf90044313d0542a15fc8c9b9481ec9
parentcd35db5e4009f8fa1c74898253a7a287d7dbce17
mm: remove __GFP_NO_KSWAPD

When transparent huge pages were introduced, memory compaction and swap
storms were an issue, and the kernel had to be careful to not make THP
allocations cause pageout or compaction.

Now that we have working compaction deferral, kswapd is smart enough to
invoke compaction and the quadratic behaviour around isolate_free_pages
has been fixed, it should be safe to remove __GFP_NO_KSWAPD.

[minchan@kernel.org: Comment fix]
[mgorman@suse.de: Avoid direct reclaim for deferred compaction]
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/mtd/mtdcore.c
include/linux/gfp.h
include/trace/events/gfpflags.h
mm/page_alloc.c