summaryrefslogtreecommitdiff
path: root/include/linux/bvec.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2019-07-22 20:08:31 -0700
committerDavid S. Miller <davem@davemloft.net>2019-07-22 20:47:56 -0700
commit8842d285bafa9ff7719f4107b6545a11dcd41995 (patch)
tree6f73341cd726d15b3c39df2583b22a268c47f1f2 /include/linux/bvec.h
parentb8b576a16f79efbdde49348147f491b176537d88 (diff)
net: Convert skb_frag_t to bio_vec
There are a lot of users of frag->page_offset, so use a union to avoid converting those users today. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bvec.h')
-rw-r--r--include/linux/bvec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/bvec.h b/include/linux/bvec.h
index a032f01e928c..7f2b2ea9399c 100644
--- a/include/linux/bvec.h
+++ b/include/linux/bvec.h
@@ -18,7 +18,10 @@
struct bio_vec {
struct page *bv_page;
unsigned int bv_len;
- unsigned int bv_offset;
+ union {
+ __u32 page_offset;
+ unsigned int bv_offset;
+ };
};
struct bvec_iter {