diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 22:25:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 22:25:39 -0400 |
commit | ac694dbdbc403c00e2c14d10bc7b8412cc378259 (patch) | |
tree | e37328cfbeaf43716dd5914cad9179e57e84df76 /drivers/net/ethernet | |
parent | a40a1d3d0a2fd613fdec6d89d3c053268ced76ed (diff) | |
parent | 437ea90cc3afdca5229b41c6b1d38c4842756cb9 (diff) |
Merge branch 'akpm' (Andrew's patch-bomb)
Merge Andrew's second set of patches:
- MM
- a few random fixes
- a couple of RTC leftovers
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (120 commits)
rtc/rtc-88pm80x: remove unneed devm_kfree
rtc/rtc-88pm80x: assign ret only when rtc_register_driver fails
mm: hugetlbfs: close race during teardown of hugetlbfs shared page tables
tmpfs: distribute interleave better across nodes
mm: remove redundant initialization
mm: warn if pg_data_t isn't initialized with zero
mips: zero out pg_data_t when it's allocated
memcg: gix memory accounting scalability in shrink_page_list
mm/sparse: remove index_init_lock
mm/sparse: more checks on mem_section number
mm/sparse: optimize sparse_index_alloc
memcg: add mem_cgroup_from_css() helper
memcg: further prevent OOM with too many dirty pages
memcg: prevent OOM with too many dirty pages
mm: mmu_notifier: fix freed page still mapped in secondary MMU
mm: memcg: only check anon swapin page charges for swap cache
mm: memcg: only check swap cache pages for repeated charging
mm: memcg: split swapin charge function into private and public part
mm: memcg: remove needless !mm fixup to init_mm when charging
mm: memcg: remove unneeded shmem charge type
...
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 |
5 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index 8596acaa402b..d49933ed551f 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c | |||
@@ -528,7 +528,7 @@ static unsigned int refill_fl(struct adapter *adap, struct sge_fl *q, int n, | |||
528 | #endif | 528 | #endif |
529 | 529 | ||
530 | while (n--) { | 530 | while (n--) { |
531 | pg = alloc_page(gfp); | 531 | pg = __skb_alloc_page(gfp, NULL); |
532 | if (unlikely(!pg)) { | 532 | if (unlikely(!pg)) { |
533 | q->alloc_failed++; | 533 | q->alloc_failed++; |
534 | break; | 534 | break; |
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c index f2d1ecdcaf98..8877fbfefb63 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c | |||
@@ -653,7 +653,7 @@ static unsigned int refill_fl(struct adapter *adapter, struct sge_fl *fl, | |||
653 | 653 | ||
654 | alloc_small_pages: | 654 | alloc_small_pages: |
655 | while (n--) { | 655 | while (n--) { |
656 | page = alloc_page(gfp | __GFP_NOWARN | __GFP_COLD); | 656 | page = __skb_alloc_page(gfp | __GFP_NOWARN, NULL); |
657 | if (unlikely(!page)) { | 657 | if (unlikely(!page)) { |
658 | fl->alloc_failed++; | 658 | fl->alloc_failed++; |
659 | break; | 659 | break; |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 1050411e7ca3..b7c2d5050572 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -6235,7 +6235,7 @@ static bool igb_alloc_mapped_page(struct igb_ring *rx_ring, | |||
6235 | return true; | 6235 | return true; |
6236 | 6236 | ||
6237 | if (!page) { | 6237 | if (!page) { |
6238 | page = alloc_page(GFP_ATOMIC | __GFP_COLD); | 6238 | page = __skb_alloc_page(GFP_ATOMIC, bi->skb); |
6239 | bi->page = page; | 6239 | bi->page = page; |
6240 | if (unlikely(!page)) { | 6240 | if (unlikely(!page)) { |
6241 | rx_ring->rx_stats.alloc_failed++; | 6241 | rx_ring->rx_stats.alloc_failed++; |
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index c709eae58c63..4326f74f7137 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | |||
@@ -1141,8 +1141,8 @@ static bool ixgbe_alloc_mapped_page(struct ixgbe_ring *rx_ring, | |||
1141 | 1141 | ||
1142 | /* alloc new page for storage */ | 1142 | /* alloc new page for storage */ |
1143 | if (likely(!page)) { | 1143 | if (likely(!page)) { |
1144 | page = alloc_pages(GFP_ATOMIC | __GFP_COLD | __GFP_COMP, | 1144 | page = __skb_alloc_pages(GFP_ATOMIC | __GFP_COLD | __GFP_COMP, |
1145 | ixgbe_rx_pg_order(rx_ring)); | 1145 | bi->skb, ixgbe_rx_pg_order(rx_ring)); |
1146 | if (unlikely(!page)) { | 1146 | if (unlikely(!page)) { |
1147 | rx_ring->rx_stats.alloc_rx_page_failed++; | 1147 | rx_ring->rx_stats.alloc_rx_page_failed++; |
1148 | return false; | 1148 | return false; |
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 3f9841d619ad..60ef64587412 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |||
@@ -352,7 +352,6 @@ static void ixgbevf_alloc_rx_buffers(struct ixgbevf_adapter *adapter, | |||
352 | adapter->alloc_rx_buff_failed++; | 352 | adapter->alloc_rx_buff_failed++; |
353 | goto no_buffers; | 353 | goto no_buffers; |
354 | } | 354 | } |
355 | |||
356 | bi->skb = skb; | 355 | bi->skb = skb; |
357 | } | 356 | } |
358 | if (!bi->dma) { | 357 | if (!bi->dma) { |