Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1503653 > unrolled thread
| Started by | Michal Hocko <mhocko@kernel.org> |
|---|---|
| First post | 2016-10-19 16:30 +0200 |
| Last post | 2016-10-19 16:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc Michal Hocko <mhocko@kernel.org> - 2016-10-19 16:30 +0200
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2016-10-19 16:30 +0200 |
| Subject | [PATCH] net, skbuff: Get rid of unused skb_propagate_pfmemalloc |
| Message-ID | <su02t-2rf-23@gated-at.bofh.it> |
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
Back to top | Article view | linux.kernel
csiph-web