OSDN Git Service

net: factorize code in kmalloc_reserve()
authorEric Dumazet <edumazet@google.com>
Mon, 6 Feb 2023 17:31:02 +0000 (17:31 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Feb 2023 18:59:55 +0000 (10:59 -0800)
commit5c0e820cbbbe2d1c4cea5cd2bfc1302c123436df
treecd814c1defbc79c502c6fc187ef960c0456598b3
parent65998d2bf857b9ae5acc1f3b70892bd1b429ccab
net: factorize code in kmalloc_reserve()

All kmalloc_reserve() callers have to make the same computation,
we can factorize them, to prepare following patch in the series.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c