Re: [PATCH net-next] hv_netvsc: Remove unnecessary round_up for recv_completion_cnt

From: David Miller
Date: Mon Mar 30 2020 - 22:44:42 EST


From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
Date: Mon, 30 Mar 2020 12:29:13 -0700

> The vzalloc_node(), already rounds the total size to whole pages, and
> sizeof(u64) is smaller than sizeof(struct recv_comp_data). So
> round_up of recv_completion_cnt is not necessary, and may cause extra
> memory allocation.
>
> To save memory, remove this unnecessary round_up for recv_completion_cnt.
>
> Signed-off-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>

Applied, thanks.