|
@@ -2803,7 +2803,7 @@ static void __btrfsic_submit_bio(struct bio *bio)
|
|
mutex_lock(&btrfsic_mutex);
|
|
mutex_lock(&btrfsic_mutex);
|
|
/* since btrfsic_submit_bio() is also called before
|
|
/* since btrfsic_submit_bio() is also called before
|
|
* btrfsic_mount(), this might return NULL */
|
|
* btrfsic_mount(), this might return NULL */
|
|
- dev_state = btrfsic_dev_state_lookup(bio_dev(bio));
|
|
|
|
|
|
+ dev_state = btrfsic_dev_state_lookup(bio_dev(bio) + bio->bi_partno);
|
|
if (NULL != dev_state &&
|
|
if (NULL != dev_state &&
|
|
(bio_op(bio) == REQ_OP_WRITE) && bio_has_data(bio)) {
|
|
(bio_op(bio) == REQ_OP_WRITE) && bio_has_data(bio)) {
|
|
unsigned int i = 0;
|
|
unsigned int i = 0;
|