mm/slab.c: only set __GFP_RECLAIMABLE once
authorDavid Rientjes <[email protected]>
Thu, 16 Nov 2017 01:32:14 +0000 (17:32 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:01 +0000 (18:21 -0800)
commita3ba074447824625d3a267a5fffd2ea21556ebf4
tree87f3eff9e8cc84bea307d95bcda20ab04d1138ec
parent9f88faee3ff7d6e8b09c9d23b7d4ac0c15a3eae9
mm/slab.c: only set __GFP_RECLAIMABLE once

SLAB_RECLAIM_ACCOUNT is a permanent attribute of a slab cache.  Set
__GFP_RECLAIMABLE as part of its ->allocflags rather than check the
cachep flag on every page allocation.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: David Rientjes <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c