1
0
mirror of https://github.com/schoebel/mars synced 2025-04-01 22:58:34 +00:00

bio: obey MARS_HAS_OLD_BDGET

This commit is contained in:
Thomas Schoebel-Theuer 2022-09-09 14:54:06 +02:00
parent 7762bfe67a
commit 9075adb29f

View File

@ -848,7 +848,6 @@ static int bio_switch(struct bio_brick *brick)
#ifdef MARS_HAS_BDI_GET
struct backing_dev_info *bdi;
#endif
brick->error = 0;
brick->mf = mapfree_get(path, flags, &brick->error);
if (unlikely(!brick->mf)) {
@ -890,7 +889,6 @@ static int bio_switch(struct bio_brick *brick)
MARS_INF("'%s' ra_pages OLD=%lu NEW=%d\n", path, q->backing_dev_info.ra_pages, brick->ra_pages);
q->backing_dev_info.ra_pages = brick->ra_pages;
#endif
q->nr_requests = bio_nr_requests;
brick->bvec_max = queue_max_hw_sectors(q) >> (PAGE_SHIFT - 9);