Re: [PATCH v2 4/8] block: introduce bio_required_sector_alignment()

2021-04-15 Thread Eric Biggers
On Thu, Mar 25, 2021 at 09:26:05PM +, Satya Tangirala wrote: > This function returns the required alignment for the number of sectors in > a bio. In particular, the number of sectors passed to bio_split() must be > aligned to this value. > > Signed-off-by: Satya Tangirala > --- > block/blk.h

Re: [PATCH v2 4/8] block: introduce bio_required_sector_alignment()

2021-04-15 Thread Eric Biggers
On Tue, Mar 30, 2021 at 07:06:53PM +0100, Christoph Hellwig wrote: > On Thu, Mar 25, 2021 at 09:26:05PM +, Satya Tangirala wrote: > > +/* > > + * The required sector alignment for a bio. The number of sectors in any > > bio > > + * that's constructed/split must be aligned to this value. > > +

Re: [PATCH v2 4/8] block: introduce bio_required_sector_alignment()

2021-03-30 Thread Christoph Hellwig
On Thu, Mar 25, 2021 at 09:26:05PM +, Satya Tangirala wrote: > +/* > + * The required sector alignment for a bio. The number of sectors in any bio > + * that's constructed/split must be aligned to this value. > + */ > +static inline unsigned int bio_required_sector_alignment(struct bio *bio) >

[PATCH v2 4/8] block: introduce bio_required_sector_alignment()

2021-03-25 Thread Satya Tangirala
This function returns the required alignment for the number of sectors in a bio. In particular, the number of sectors passed to bio_split() must be aligned to this value. Signed-off-by: Satya Tangirala --- block/blk.h | 12 1 file changed, 12 insertions(+) diff --git a/block/blk.h