Skip to content

Commit 5713bcc

Browse files
Christoph Hellwigdjbw
authored andcommitted
nvdimm/btt: stop using ->queuedata
In preparation for removing queuedata as an argument to make_request_fn() drop the dependency ->queuedata. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent daa2897 commit 5713bcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvdimm/btt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ static int btt_do_bvec(struct btt *btt, struct bio_integrity_payload *bip,
14421442
static blk_qc_t btt_make_request(struct request_queue *q, struct bio *bio)
14431443
{
14441444
struct bio_integrity_payload *bip = bio_integrity(bio);
1445-
struct btt *btt = q->queuedata;
1445+
struct btt *btt = bio->bi_disk->private_data;
14461446
struct bvec_iter iter;
14471447
unsigned long start;
14481448
struct bio_vec bvec;
@@ -1543,7 +1543,6 @@ static int btt_blk_init(struct btt *btt)
15431543
blk_queue_logical_block_size(btt->btt_queue, btt->sector_size);
15441544
blk_queue_max_hw_sectors(btt->btt_queue, UINT_MAX);
15451545
blk_queue_flag_set(QUEUE_FLAG_NONROT, btt->btt_queue);
1546-
btt->btt_queue->queuedata = btt;
15471546

15481547
if (btt_meta_size(btt)) {
15491548
int rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt));

0 commit comments

Comments
 (0)