Re: [PATCH] mm: slab: remove ZONE_DMA_FLAG

2016-05-09 Thread Shi, Yang
On 5/5/2016 4:49 AM, Michal Hocko wrote: On Wed 04-05-16 10:01:37, Yang Shi wrote: Now we have IS_ENABLED helper to check if a Kconfig option is enabled or not, so ZONE_DMA_FLAG sounds no longer useful. And, the use of ZONE_DMA_FLAG in slab looks pointless according to the comment [1] from Joha

Re: [PATCH] mm: slab: remove ZONE_DMA_FLAG

2016-05-05 Thread Michal Hocko
On Wed 04-05-16 10:01:37, Yang Shi wrote: > Now we have IS_ENABLED helper to check if a Kconfig option is enabled or not, > so ZONE_DMA_FLAG sounds no longer useful. > > And, the use of ZONE_DMA_FLAG in slab looks pointless according to the > comment [1] from Johannes Weiner, so remove them and OR

[PATCH] mm: slab: remove ZONE_DMA_FLAG

2016-05-04 Thread Yang Shi
Now we have IS_ENABLED helper to check if a Kconfig option is enabled or not, so ZONE_DMA_FLAG sounds no longer useful. And, the use of ZONE_DMA_FLAG in slab looks pointless according to the comment [1] from Johannes Weiner, so remove them and ORing passed in flags with the cache gfp flags has bee