Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9354f1b8 authored by Muthu Kumar's avatar Muthu Kumar Committed by Linus Torvalds
Browse files

floppy/scsi: fix setting of BIO flags



Fix setting bio flags in drivers (sd_dif/floppy).

Signed-off-by: default avatarMuthukumar R <muthur@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ce70c02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3832,7 +3832,7 @@ static int __floppy_read_block_0(struct block_device *bdev)
	bio.bi_size = size;
	bio.bi_bdev = bdev;
	bio.bi_sector = 0;
	bio.bi_flags = BIO_QUIET;
	bio.bi_flags = (1 << BIO_QUIET);
	init_completion(&complete);
	bio.bi_private = &complete;
	bio.bi_end_io = floppy_rb0_complete;
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ int sd_dif_prepare(struct request *rq, sector_t hw_sector, unsigned int sector_s
			kunmap_atomic(sdt, KM_USER0);
		}

		bio->bi_flags |= BIO_MAPPED_INTEGRITY;
		bio->bi_flags |= (1 << BIO_MAPPED_INTEGRITY);
	}

	return 0;