projects
/
~tnikolova
/
compat
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f109900
)
compat: Add __skb_frag_unref
author
Vladimir Sokolovsky
<vlad@mellanox.com>
Sun, 5 Aug 2012 18:18:12 +0000
(21:18 +0300)
committer
Vladimir Sokolovsky
<vlad@mellanox.com>
Sun, 5 Aug 2012 18:21:31 +0000
(21:21 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.2.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-3.2.h
b/include/linux/compat-3.2.h
index
c44bec1
..
d888d81
100644
(file)
--- a/
include/linux/compat-3.2.h
+++ b/
include/linux/compat-3.2.h
@@
-115,6
+115,17
@@
static inline void skb_frag_size_sub(skb_frag_t *frag, int delta)
frag->size -= delta;
}
+/**
+ * __skb_frag_unref - release a reference on a paged fragment.
+ * @frag: the paged fragment
+ *
+ * Releases a reference on the paged fragment @frag.
+ */
+static inline void __skb_frag_unref(skb_frag_t *frag)
+{
+ put_page(skb_frag_page(frag));
+}
+
#endif /* CONFIG_COMPAT_SKB_FRAG_NEEDED */
static inline char *hex_byte_pack(char *buf, u8 byte)