diff options
author | Sunghan Suh <sunghan.suh@samsung.com> | 2013-07-12 03:17:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-12 19:10:34 -0400 |
commit | 40dadff26539d1695d2a37b44f66c53158439ae9 (patch) | |
tree | 3efcb99f70f244369a2bc12ee0ade502fb003311 /net | |
parent | 92338dc2fb33c8526256a458a520af73d9ab2d14 (diff) |
net: access page->private by using page_private
Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/skbuff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 724bb7cb173f..20e02d2605ec 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -824,7 +824,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) | |||
824 | page = alloc_page(gfp_mask); | 824 | page = alloc_page(gfp_mask); |
825 | if (!page) { | 825 | if (!page) { |
826 | while (head) { | 826 | while (head) { |
827 | struct page *next = (struct page *)head->private; | 827 | struct page *next = (struct page *)page_private(head); |
828 | put_page(head); | 828 | put_page(head); |
829 | head = next; | 829 | head = next; |
830 | } | 830 | } |
@@ -834,7 +834,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) | |||
834 | memcpy(page_address(page), | 834 | memcpy(page_address(page), |
835 | vaddr + f->page_offset, skb_frag_size(f)); | 835 | vaddr + f->page_offset, skb_frag_size(f)); |
836 | kunmap_atomic(vaddr); | 836 | kunmap_atomic(vaddr); |
837 | page->private = (unsigned long)head; | 837 | set_page_private(page, (unsigned long)head); |
838 | head = page; | 838 | head = page; |
839 | } | 839 | } |
840 | 840 | ||
@@ -848,7 +848,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) | |||
848 | for (i = num_frags - 1; i >= 0; i--) { | 848 | for (i = num_frags - 1; i >= 0; i--) { |
849 | __skb_fill_page_desc(skb, i, head, 0, | 849 | __skb_fill_page_desc(skb, i, head, 0, |
850 | skb_shinfo(skb)->frags[i].size); | 850 | skb_shinfo(skb)->frags[i].size); |
851 | head = (struct page *)head->private; | 851 | head = (struct page *)page_private(head); |
852 | } | 852 | } |
853 | 853 | ||
854 | skb_shinfo(skb)->tx_flags &= ~SKBTX_DEV_ZEROCOPY; | 854 | skb_shinfo(skb)->tx_flags &= ~SKBTX_DEV_ZEROCOPY; |