mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
skbuff: simplify kmalloc_reserve()
Eversince the introduction of __kmalloc_reserve(), "ip" argument hasn't been used. _RET_IP_ is embedded inside kmalloc_node_track_caller(). Remove the redundant macro and rename the function after it. Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5381b23d5b
commit
ef28095fce
1 changed files with 2 additions and 5 deletions
|
@ -273,11 +273,8 @@ EXPORT_SYMBOL(__netdev_alloc_frag_align);
|
||||||
* may be used. Otherwise, the packet data may be discarded until enough
|
* may be used. Otherwise, the packet data may be discarded until enough
|
||||||
* memory is free
|
* memory is free
|
||||||
*/
|
*/
|
||||||
#define kmalloc_reserve(size, gfp, node, pfmemalloc) \
|
static void *kmalloc_reserve(size_t size, gfp_t flags, int node,
|
||||||
__kmalloc_reserve(size, gfp, node, _RET_IP_, pfmemalloc)
|
bool *pfmemalloc)
|
||||||
|
|
||||||
static void *__kmalloc_reserve(size_t size, gfp_t flags, int node,
|
|
||||||
unsigned long ip, bool *pfmemalloc)
|
|
||||||
{
|
{
|
||||||
void *obj;
|
void *obj;
|
||||||
bool ret_pfmemalloc = false;
|
bool ret_pfmemalloc = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue