Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'block-5.18-2022-04-22' of git://git.kernel.dk/linux-block

Pull block fixes from Jens Axboe:
"Just two small regression fixes for bcache"

* tag 'block-5.18-2022-04-22' of git://git.kernel.dk/linux-block:
bcache: fix wrong bdev parameter when calling bio_alloc_clone() in do_bio_hook()
bcache: put bch_bio_map() back to correct location in journal_write_unlocked()

+2 -2
+1 -1
drivers/md/bcache/journal.c
··· 771 771 772 772 bio_reset(bio, ca->bdev, REQ_OP_WRITE | 773 773 REQ_SYNC | REQ_META | REQ_PREFLUSH | REQ_FUA); 774 - bch_bio_map(bio, w->data); 775 774 bio->bi_iter.bi_sector = PTR_OFFSET(k, i); 776 775 bio->bi_iter.bi_size = sectors << 9; 777 776 778 777 bio->bi_end_io = journal_write_endio; 779 778 bio->bi_private = w; 779 + bch_bio_map(bio, w->data); 780 780 781 781 trace_bcache_journal_write(bio, w->data->keys); 782 782 bio_list_add(&list, bio);
+1 -1
drivers/md/bcache/request.c
··· 685 685 { 686 686 struct bio *bio = &s->bio.bio; 687 687 688 - bio_init_clone(bio->bi_bdev, bio, orig_bio, GFP_NOIO); 688 + bio_init_clone(orig_bio->bi_bdev, bio, orig_bio, GFP_NOIO); 689 689 /* 690 690 * bi_end_io can be set separately somewhere else, e.g. the 691 691 * variants in,