On Thu, 2 Aug 2007, Miklos Szeredi wrote:The __GFP_ZERO flag has been around for a long time. GFP_ZERO_ATOMIC and GFP_ZERO_KERNEL or so could just be a shorthand notation. Maybe #define GFP_ZATOMIC (GFP_ATOMIC | __GFP_ZERO) #define GFP_ZKERNEL (GFP_KERNEL | __GFP_ZERO) ? They require a duplication of the API and have led to inconsistencies because the complete API was not available with zeroing capabilities (there is still no kzalloc_node f.e.). Using a gfp flag allows all allocation functions to optionally zero data without having to define multiple functions. The definition of new variants is a bit complicated since the allocator functions contain lots of smarts to do inline constant folding. This is necessary to determine the correct slab at compile time. I'd rather have as few of those as possible. -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Pavel Roskin | ndiswrapper and GPL-only symbols redux |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
