]> git.karo-electronics.de Git - linux-beck.git/commit
md/raid5: use kmem_cache_zalloc()
authorNamhyung Kim <namhyung@gmail.com>
Mon, 18 Jul 2011 07:38:50 +0000 (17:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Jul 2011 07:38:50 +0000 (17:38 +1000)
commit6ce328462c1145a217ba1f27b882743be1407759
tree53eb00f1fbbb002f4f3d74a0e1ed09131377a70d
parentc65060ad4274f70048d62e0a86332cd3fd23f28d
md/raid5: use kmem_cache_zalloc()

Replace kmem_cache_alloc + memset(,0,) to kmem_cache_zalloc.
I think it's not harmful since @conf->slab_cache already knows
actual size of struct stripe_head.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c