Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1371455 > unrolled thread

[PATCH 21/27] fs: logfs: use bio_set_vec_table()

Started byMing Lei <tom.leiming@gmail.com>
First post2016-04-05 14:10 +0200
Last post2016-04-05 15:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 21/27] fs: logfs: use bio_set_vec_table() Ming Lei <tom.leiming@gmail.com> - 2016-04-05 14:10 +0200
    Re: [PATCH 21/27] fs: logfs: use bio_set_vec_table() Christoph Hellwig <hch@infradead.org> - 2016-04-05 15:00 +0200

#1371455 — [PATCH 21/27] fs: logfs: use bio_set_vec_table()

FromMing Lei <tom.leiming@gmail.com>
Date2016-04-05 14:10 +0200
Subject[PATCH 21/27] fs: logfs: use bio_set_vec_table()
Message-ID<rkxXX-36a-13@gated-at.bofh.it>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 fs/logfs/dev_bdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/logfs/dev_bdev.c b/fs/logfs/dev_bdev.c
index a709d80..bc422bc9 100644
--- a/fs/logfs/dev_bdev.c
+++ b/fs/logfs/dev_bdev.c
@@ -20,8 +20,7 @@ static int sync_request(struct page *page, struct block_device *bdev, int rw)
 	struct bio_vec bio_vec;
 
 	bio_init(&bio);
-	bio.bi_max_vecs = 1;
-	bio.bi_io_vec = &bio_vec;
+	bio_set_vec_table(&bio, &bio_vec, 1);
 	bio_vec.bv_page = page;
 	bio_vec.bv_len = PAGE_SIZE;
 	bio_vec.bv_offset = 0;
-- 
1.9.1

[toc] | [next] | [standalone]


#1371533

FromChristoph Hellwig <hch@infradead.org>
Date2016-04-05 15:00 +0200
Message-ID<rkyKl-3D8-9@gated-at.bofh.it>
In reply to#1371455
On Tue, Apr 05, 2016 at 08:07:36PM +0800, Ming Lei wrote:
> Signed-off-by: Ming Lei <tom.leiming@gmail.com>

Need to be converted to bio_alloc instead.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web