skbuff: constify skb_propagate_pfmemalloc() "page" argument

The function doesn't write anything to the page struct itself,
so this argument can be const.

Misc: align second argument to the brace while at it.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Alexander Lobakin 2021-02-02 13:31:05 +00:00 коммит произвёл Jakub Kicinski
Родитель 1d7bab6a94
Коммит 48f971c9c8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2943,8 +2943,8 @@ static inline struct page *dev_alloc_page(void)
* @page: The page that was allocated from skb_alloc_page * @page: The page that was allocated from skb_alloc_page
* @skb: The skb that may need pfmemalloc set * @skb: The skb that may need pfmemalloc set
*/ */
static inline void skb_propagate_pfmemalloc(struct page *page, static inline void skb_propagate_pfmemalloc(const struct page *page,
struct sk_buff *skb) struct sk_buff *skb)
{ {
if (page_is_pfmemalloc(page)) if (page_is_pfmemalloc(page))
skb->pfmemalloc = true; skb->pfmemalloc = true;