diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2016-05-19 20:10:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-19 22:12:14 -0400 |
commit | 6d061f9f6136d477932088c24ce155d7dc785746 (patch) | |
tree | 826ccf493e5a9688bcb363fdc9c68705bf5ece1a /net | |
parent | 43efd3ea64f3cf8920e8793e6953321a466023e3 (diff) |
mm/page_ref: use page_ref helper instead of direct modification of _count
page_reference manipulation functions are introduced to track down
reference count change of the page. Use it instead of direct
modification of _count.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Sunil Goutham <sgoutham@cavium.com>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 219bd197039e..4e809e978b7d 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -651,7 +651,7 @@ __frame_add_frag(struct sk_buff *skb, struct page *page, | |||
651 | struct skb_shared_info *sh = skb_shinfo(skb); | 651 | struct skb_shared_info *sh = skb_shinfo(skb); |
652 | int page_offset; | 652 | int page_offset; |
653 | 653 | ||
654 | atomic_inc(&page->_count); | 654 | page_ref_inc(page); |
655 | page_offset = ptr - page_address(page); | 655 | page_offset = ptr - page_address(page); |
656 | skb_add_rx_frag(skb, sh->nr_frags, page, page_offset, len, size); | 656 | skb_add_rx_frag(skb, sh->nr_frags, page, page_offset, len, size); |
657 | } | 657 | } |