Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1708467
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 11/49] btrfs: avoid access to .bi_vcnt directly |
| Date | 2017-08-10 13:40 +0200 |
| Message-ID | <ucTYJ-4Yg-5@gated-at.bofh.it> (permalink) |
| References | <uc8n7-5sU-3@gated-at.bofh.it> <uc8n8-5sU-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> +static unsigned int get_bio_pages(struct bio *bio)
> +{
> + unsigned i;
> + struct bio_vec *bv;
> +
> + bio_for_each_segment_all(bv, bio, i)
> + ;
> +
> + return i;
> +}
s/get_bio_pages/bio_nr_pages/ ?
Also this seems like a useful helper for bio.h
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 11/49] btrfs: avoid access to .bi_vcnt directly Ming Lei <ming.lei@redhat.com> - 2017-08-08 10:50 +0200 Re: [PATCH v3 11/49] btrfs: avoid access to .bi_vcnt directly Christoph Hellwig <hch@infradead.org> - 2017-08-10 13:40 +0200
csiph-web