diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2014-11-11 12:27:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-12 00:00:14 -0500 |
commit | 160d2aba550b23c6a538158511d5adccc400f04c (patch) | |
tree | 206430a4e03f692046408bdf35ca021112770e3b /include/linux/skbuff.h | |
parent | 42b17f09550170fd238d76368e8fa8dfcc893082 (diff) |
net: Remove __skb_alloc_page and __skb_alloc_pages
Remove the two functions which are now dead code.
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 2e5221f1ec72..73c370e615de 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2233,49 +2233,6 @@ static inline struct page *dev_alloc_page(void) | |||
2233 | } | 2233 | } |
2234 | 2234 | ||
2235 | /** | 2235 | /** |
2236 | * __skb_alloc_pages - allocate pages for ps-rx on a skb and preserve pfmemalloc data | ||
2237 | * @gfp_mask: alloc_pages_node mask. Set __GFP_NOMEMALLOC if not for network packet RX | ||
2238 | * @skb: skb to set pfmemalloc on if __GFP_MEMALLOC is used | ||
2239 | * @order: size of the allocation | ||
2240 | * | ||
2241 | * Allocate a new page. | ||
2242 | * | ||
2243 | * %NULL is returned if there is no free memory. | ||
2244 | */ | ||
2245 | static inline struct page *__skb_alloc_pages(gfp_t gfp_mask, | ||
2246 | struct sk_buff *skb, | ||
2247 | unsigned int order) | ||
2248 | { | ||
2249 | struct page *page; | ||
2250 | |||
2251 | gfp_mask |= __GFP_COLD; | ||
2252 | |||
2253 | if (!(gfp_mask & __GFP_NOMEMALLOC)) | ||
2254 | gfp_mask |= __GFP_MEMALLOC; | ||
2255 | |||
2256 | page = alloc_pages_node(NUMA_NO_NODE, gfp_mask, order); | ||
2257 | if (skb && page && page->pfmemalloc) | ||
2258 | skb->pfmemalloc = true; | ||
2259 | |||
2260 | return page; | ||
2261 | } | ||
2262 | |||
2263 | /** | ||
2264 | * __skb_alloc_page - allocate a page for ps-rx for a given skb and preserve pfmemalloc data | ||
2265 | * @gfp_mask: alloc_pages_node mask. Set __GFP_NOMEMALLOC if not for network packet RX | ||
2266 | * @skb: skb to set pfmemalloc on if __GFP_MEMALLOC is used | ||
2267 | * | ||
2268 | * Allocate a new page. | ||
2269 | * | ||
2270 | * %NULL is returned if there is no free memory. | ||
2271 | */ | ||
2272 | static inline struct page *__skb_alloc_page(gfp_t gfp_mask, | ||
2273 | struct sk_buff *skb) | ||
2274 | { | ||
2275 | return __skb_alloc_pages(gfp_mask, skb, 0); | ||
2276 | } | ||
2277 | |||
2278 | /** | ||
2279 | * skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page | 2236 | * skb_propagate_pfmemalloc - Propagate pfmemalloc if skb is allocated after RX page |
2280 | * @page: The page that was allocated from skb_alloc_page | 2237 | * @page: The page that was allocated from skb_alloc_page |
2281 | * @skb: The skb that may need pfmemalloc set | 2238 | * @skb: The skb that may need pfmemalloc set |