| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/8] block: move bvec iterator into include/linux/bvec_iter.h |
| From: | Ming Lei <ming.lei@xxxxxxxxxxxxx> |
| Date: | Tue, 29 Mar 2016 16:53:22 +0800 |
| Cc: | Jens Axboe <axboe@xxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, linux-block@xxxxxxxxxxxxxxx, Al Viro <viro@xxxxxxxxxxxxxxxxxx>, Anton Altaparmakov <anton@xxxxxxxxxx>, xfs@xxxxxxxxxxx, Dave Chinner <david@xxxxxxxxxxxxx>, drbd-dev@xxxxxxxxxxxxxxxx, Philipp Reisner <philipp.reisner@xxxxxxxxxx>, Lars Ellenberg <lars.ellenberg@xxxxxxxxxx>, Boaz Harrosh <boaz@xxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20160329072617.GB18920@xxxxxxxxxxxxx> |
| References: | <1458627149-12988-1-git-send-email-ming.lei@xxxxxxxxxxxxx> <1458627149-12988-2-git-send-email-ming.lei@xxxxxxxxxxxxx> <20160329072617.GB18920@xxxxxxxxxxxxx> |
On Tue, Mar 29, 2016 at 3:26 PM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: >> --- a/include/linux/bio.h >> +++ b/include/linux/bio.h >> @@ -31,6 +31,7 @@ >> >> /* struct bio, bio_vec and BIO_* flags are defined in blk_types.h */ >> #include <linux/blk_types.h> >> +#include <linux/bvec_iter.h> >> >> #define BIO_DEBUG >> >> @@ -40,10 +41,6 @@ >> #define BIO_BUG_ON >> #endif >> >> -#define BIO_MAX_PAGES 256 >> -#define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_CACHE_SHIFT) >> -#define BIO_MAX_SECTORS (BIO_MAX_SIZE >> 9) > > I see no reason why these should be moved out of bio.h. You are right, these should be kept in bio.h. Thanks for your review! > > Otherwise this looks fine to me. > -- > To unsubscribe from this list: send the line "unsubscribe linux-block" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html |
| Previous by Date: | Re: [PATCH 7/8] block: drbd: avoid to use BIO_MAX_SIZE, Lars Ellenberg |
|---|---|
| Next by Date: | order management, éäè |
| Previous by Thread: | Re: [PATCH 1/8] block: move bvec iterator into include/linux/bvec_iter.h, Christoph Hellwig |
| Next by Thread: | [PATCH 2/8] block: make 'struct bvec_iter' not depend on CONFIG_BLOCK, Ming Lei |
| Indexes: | [Date] [Thread] [Top] [All Lists] |