* [PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc
@ 2016-10-19 12:32 Michal Hocko
0 siblings, 0 replies; 3+ messages in thread
From: Michal Hocko @ 2016-10-19 12:32 UTC (permalink / raw)
To: David S. Miller; +Cc: Eric Dumazet, LKML, Michal Hocko
From: Michal Hocko <mhocko@suse.com>
It seems that skb_propagate_pfmemalloc has never had a user since it was
introduced by 0614002bb5f7 ("netvm: propagate page->pfmemalloc from
skb_alloc_page to skb"). Remove it.
Signed-off-by: Michal Hocko <mhocko@suse.com>
---
Hi,
I've posted this trivial cleanup quite some time ago but it seemed to
fall through cracks. I've found it again while cleaning up my local repo.
Is there any interest in it or should I just drop it and do not care?
include/linux/skbuff.h | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 601258f6e621..641843a786d8 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2535,18 +2535,6 @@ static inline struct page *dev_alloc_page(void)
}
/**
- * skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page
- * @page: The page that was allocated from skb_alloc_page
- * @skb: The skb that may need pfmemalloc set
- */
-static inline void skb_propagate_pfmemalloc(struct page *page,
- struct sk_buff *skb)
-{
- if (page_is_pfmemalloc(page))
- skb->pfmemalloc = true;
-}
-
-/**
* skb_frag_page - retrieve the page referred to by a paged fragment
* @frag: the paged fragment
*
--
2.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc
@ 2015-08-27 8:46 mhocko
2015-09-25 14:11 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: mhocko @ 2015-08-27 8:46 UTC (permalink / raw)
To: David S. Miller; +Cc: Mel Gorman, Eric Dumazet, linux-kernel, Michal Hocko
From: Michal Hocko <mhocko@suse.com>
It seems that skb_propagate_pfmemalloc has never had a user since it was
introduced by 0614002bb5f7 ("netvm: propagate page->pfmemalloc from
skb_alloc_page to skb"). Remove it.
Signed-off-by: Michal Hocko <mhocko@suse.com>
---
Hi,
this has been noticed while working on 2f064f3485cd ("mm: make page
pfmemalloc check more robust").
include/linux/skbuff.h | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 9b88536487e6..9fcf69daa26c 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2252,18 +2252,6 @@ static inline struct page *dev_alloc_page(void)
}
/**
- * skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page
- * @page: The page that was allocated from skb_alloc_page
- * @skb: The skb that may need pfmemalloc set
- */
-static inline void skb_propagate_pfmemalloc(struct page *page,
- struct sk_buff *skb)
-{
- if (page_is_pfmemalloc(page))
- skb->pfmemalloc = true;
-}
-
-/**
* skb_frag_page - retrieve the page referred to by a paged fragment
* @frag: the paged fragment
*
--
2.5.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc
2015-08-27 8:46 mhocko
@ 2015-09-25 14:11 ` Michal Hocko
0 siblings, 0 replies; 3+ messages in thread
From: Michal Hocko @ 2015-09-25 14:11 UTC (permalink / raw)
To: David S. Miller; +Cc: Mel Gorman, Eric Dumazet, linux-kernel
On Thu 27-08-15 10:46:37, mhocko@kernel.org wrote:
> From: Michal Hocko <mhocko@suse.com>
>
> It seems that skb_propagate_pfmemalloc has never had a user since it was
> introduced by 0614002bb5f7 ("netvm: propagate page->pfmemalloc from
> skb_alloc_page to skb"). Remove it.
>
> Signed-off-by: Michal Hocko <mhocko@suse.com>
> ---
> Hi,
> this has been noticed while working on 2f064f3485cd ("mm: make page
> pfmemalloc check more robust").
Has this just fallen through cracks or it is not interesting?
>
> include/linux/skbuff.h | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
> index 9b88536487e6..9fcf69daa26c 100644
> --- a/include/linux/skbuff.h
> +++ b/include/linux/skbuff.h
> @@ -2252,18 +2252,6 @@ static inline struct page *dev_alloc_page(void)
> }
>
> /**
> - * skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page
> - * @page: The page that was allocated from skb_alloc_page
> - * @skb: The skb that may need pfmemalloc set
> - */
> -static inline void skb_propagate_pfmemalloc(struct page *page,
> - struct sk_buff *skb)
> -{
> - if (page_is_pfmemalloc(page))
> - skb->pfmemalloc = true;
> -}
> -
> -/**
> * skb_frag_page - retrieve the page referred to by a paged fragment
> * @frag: the paged fragment
> *
> --
> 2.5.0
>
--
Michal Hocko
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-19 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-19 12:32 [PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc Michal Hocko
-- strict thread matches above, loose matches on Subject: below --
2015-08-27 8:46 mhocko
2015-09-25 14:11 ` Michal Hocko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome