block: Use bio_sectors() more consistently
[deliverable/linux.git] / fs / btrfs / volumes.c
index 5989a92236f7f1b578ec3ccf88078bb69c1093d3..d90e0485e01b0442d523f86c3f527f79f00393e3 100644 (file)
@@ -5166,7 +5166,7 @@ static int bio_size_ok(struct block_device *bdev, struct bio *bio,
        }
 
        prev = &bio->bi_io_vec[bio->bi_vcnt - 1];
-       if ((bio->bi_size >> 9) > max_sectors)
+       if (bio_sectors(bio) > max_sectors)
                return 0;
 
        if (!q->merge_bvec_fn)
This page took 0.029323 seconds and 5 git commands to generate.