Re: [PATCH 06/14] block: drop double zeroing

From: Jens Axboe
Date: Wed Sep 23 2020 - 11:18:33 EST


On 9/20/20 5:26 AM, Julia Lawall wrote:
> sg_init_table zeroes its first argument, so the allocation of that argument
> doesn't have to.
>
> the semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression x;
> @@
>
> x =
> - kzalloc
> + kmalloc
> (...)
> ...
> sg_init_table(x,...)
> // </smpl>

Applied for 5.10, thanks.

--
Jens Axboe