The block layer now takes care of these. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- drivers/block/brd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 2fd1ed1017481b..42545e4ddfac4b 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -256,10 +256,6 @@ static void brd_submit_bio(struct bio *bio) unsigned int len = bvec.bv_len; int err; - /* Don't support un-aligned buffer */ - WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || - (len & (SECTOR_SIZE - 1))); - err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset, bio->bi_opf, sector); if (err) { -- 2.43.0