Re: [PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-06 Thread Ben Myers
On Mon, Nov 04, 2013 at 06:21:05PM +0800, Gu Zheng wrote: > Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert > kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, > in order to avoid the setting to zero step. > And following Dave's suggestion, make

Re: [PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-06 Thread Ben Myers
On Mon, Nov 04, 2013 at 06:21:05PM +0800, Gu Zheng wrote: Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. And following Dave's suggestion, make

Re: [PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-04 Thread Dave Chinner
On Mon, Nov 04, 2013 at 06:21:05PM +0800, Gu Zheng wrote: > Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert > kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, > in order to avoid the setting to zero step. > And following Dave's suggestion, make

[PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-04 Thread Gu Zheng
Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. And following Dave's suggestion, make kmem_{zone_}zalloc static inline into kmem.h as they're now just a simple

Re: [PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-04 Thread Dave Chinner
On Mon, Nov 04, 2013 at 06:21:05PM +0800, Gu Zheng wrote: Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. And following Dave's suggestion, make

[PATCH V2] xfs: simplify kmem_{zone_}zalloc

2013-11-04 Thread Gu Zheng
Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. And following Dave's suggestion, make kmem_{zone_}zalloc static inline into kmem.h as they're now just a simple