Thread (19 messages) 19 messages, 2 authors, 2017-02-28

Re: [PATCH v1 01/14] block: introduce bio_segments_all()

From: Ming Lei <tom.leiming@gmail.com>
Date: 2017-02-28 12:27:33
Also in: linux-block, lkml

On Sun, Feb 26, 2017 at 2:22 AM, Christoph Hellwig [off-list ref] wrote:
quoted
+static inline unsigned bio_segments_all(struct bio *bio)
+{
+     WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
+
+     return bio->bi_vcnt;
+}
I don't think this helpers really adds any benefit.
IMO the first benefit is that misusing of .bi_vcnt can be warned, and
another one is that we have to introduce this helper if multipage bvec
is supported.

Thanks,
Ming Lei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help