Messages in this thread | | | Date | Mon, 30 Mar 2020 19:44:24 -0700 (PDT) | Subject | Re: [PATCH net-next] hv_netvsc: Remove unnecessary round_up for recv_completion_cnt | From | David Miller <> |
| |
From: Haiyang Zhang <haiyangz@microsoft.com> 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@microsoft.com>
Applied, thanks.
| |