Whamcloud - gitweb
LU-5304: no need to zero out the allocated memory when GFP_ZERO is set 11/11011/3
authorFrank Zago <fzago@cray.com>
Mon, 7 Jul 2014 23:09:04 +0000 (18:09 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 15 Jul 2014 03:57:06 +0000 (03:57 +0000)
commite270894db5e357193a7dfd0f998dba37e68c1fc3
treea909ebbbc3814614c81541b2714bdba9bf46d049
parent35c686077094fb92a1f15368e27d5f625c27c4f7
LU-5304: no need to zero out the allocated memory when GFP_ZERO is set

The kernel will zero out the memory allocated when GFP_ZERO is set,
so no need to zero it out again.

It is possible the original intent was to memset the allocated memory
if GFP_ZERO was not set. However the only two existing callers of this
function already set GFP_ZERO.

Signed-off-by: Frank Zago <fzago@cray.com>
Change-Id: Ia7f365f91aa2ce7a302e4f794706c978222317bb
Reviewed-on: http://review.whamcloud.com/11011
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
libcfs/libcfs/linux/linux-mem.c