mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
page_pool: fix typos and punctuation
Correct spelling (s/and/any) and a run-on sentence. Spell out "multi". Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Jesper Dangaard Brouer <hawk@kernel.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Link: https://lore.kernel.org/r/20231213043650.12672-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
bf873a800a
commit
fcb29877f7
1 changed files with 6 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
||||||
* The page_pool allocator is optimized for recycling page or page fragment used
|
* The page_pool allocator is optimized for recycling page or page fragment used
|
||||||
* by skb packet and xdp frame.
|
* by skb packet and xdp frame.
|
||||||
*
|
*
|
||||||
* Basic use involves replacing and alloc_pages() calls with page_pool_alloc(),
|
* Basic use involves replacing any alloc_pages() calls with page_pool_alloc(),
|
||||||
* which allocate memory with or without page splitting depending on the
|
* which allocate memory with or without page splitting depending on the
|
||||||
* requested memory size.
|
* requested memory size.
|
||||||
*
|
*
|
||||||
|
@ -37,15 +37,15 @@
|
||||||
* attach the page_pool object to a page_pool-aware object like skbs marked with
|
* attach the page_pool object to a page_pool-aware object like skbs marked with
|
||||||
* skb_mark_for_recycle().
|
* skb_mark_for_recycle().
|
||||||
*
|
*
|
||||||
* page_pool_put_page() may be called multi times on the same page if a page is
|
* page_pool_put_page() may be called multiple times on the same page if a page
|
||||||
* split into multi fragments. For the last fragment, it will either recycle the
|
* is split into multiple fragments. For the last fragment, it will either
|
||||||
* page, or in case of page->_refcount > 1, it will release the DMA mapping and
|
* recycle the page, or in case of page->_refcount > 1, it will release the DMA
|
||||||
* in-flight state accounting.
|
* mapping and in-flight state accounting.
|
||||||
*
|
*
|
||||||
* dma_sync_single_range_for_device() is only called for the last fragment when
|
* dma_sync_single_range_for_device() is only called for the last fragment when
|
||||||
* page_pool is created with PP_FLAG_DMA_SYNC_DEV flag, so it depends on the
|
* page_pool is created with PP_FLAG_DMA_SYNC_DEV flag, so it depends on the
|
||||||
* last freed fragment to do the sync_for_device operation for all fragments in
|
* last freed fragment to do the sync_for_device operation for all fragments in
|
||||||
* the same page when a page is split, the API user must setup pool->p.max_len
|
* the same page when a page is split. The API user must setup pool->p.max_len
|
||||||
* and pool->p.offset correctly and ensure that page_pool_put_page() is called
|
* and pool->p.offset correctly and ensure that page_pool_put_page() is called
|
||||||
* with dma_sync_size being -1 for fragment API.
|
* with dma_sync_size being -1 for fragment API.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue