From: Gu Zheng Date: Mon, 4 Nov 2013 10:21:05 +0000 (+0800) Subject: xfs: simplify kmem_{zone_}zalloc X-Git-Tag: v3.13-rc1~87^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=359d992bcd398273637cd9edde10afca953783c4;p=pandora-kernel.git xfs: simplify kmem_{zone_}zalloc 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 wrapper. V2: Make kmem_{zone_}zalloc static inline into kmem.h as Dave suggested. Signed-off-by: Gu Zheng Reviewed-by: Dave Chinner Signed-off-by: Ben Myers --- Reading git-diff-tree failed