Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: vm: page_frags.rst: Fix the reference of stale function

The __netdev_alloc_frag() has been dropped by commit 7ba7aeabbaba ("net:
Don't disable interrupts in napi_alloc_frag()"). So replace it with
netdev_alloc_frag().

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://lore.kernel.org/r/20200508140924.18220-1-haokexin@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Kevin Hao and committed by
Jonathan Corbet
ea8fdf1a fd79cfd7

+1 -1
+1 -1
Documentation/vm/page_frags.rst
··· 26 26 27 27 The network stack uses two separate caches per CPU to handle fragment 28 28 allocation. The netdev_alloc_cache is used by callers making use of the 29 - __netdev_alloc_frag and __netdev_alloc_skb calls. The napi_alloc_cache is 29 + netdev_alloc_frag and __netdev_alloc_skb calls. The napi_alloc_cache is 30 30 used by callers of the __napi_alloc_frag and __napi_alloc_skb calls. The 31 31 main difference between these two calls is the context in which they may be 32 32 called. The "netdev" prefixed functions are usable in any context as these