if: remove obsolete merge_bvec_fn()

This commit is contained in:
Thomas Schoebel-Theuer 2015-12-04 11:16:38 +01:00
parent 67977d7abf
commit d96b6e3fbf
1 changed files with 1 additions and 15 deletions

View File

@ -46,7 +46,7 @@
#define USE_SEGMENT_BOUNDARY (PAGE_SIZE-1)
#define USE_CONGESTED_FN
#define USE_MERGE_BVEC
// end_remove_this
//#define DENY_READA
#include <linux/kernel.h>
@ -842,16 +842,6 @@ int mars_congested(void *data, int bdi_bits)
return ret;
}
static
int mars_merge_bvec(struct request_queue *q, struct bvec_merge_data *bvm, struct bio_vec *bvec)
{
unsigned int bio_size = bvm->bi_size;
if (!bio_size) {
return bvec->bv_len;
}
return 128;
}
static
loff_t if_get_capacity(struct if_brick *brick)
{
@ -1009,10 +999,6 @@ static int if_switch(struct if_brick *brick)
q->backing_dev_info.congested_fn = mars_congested;
q->backing_dev_info.congested_data = input;
#endif
#ifdef USE_MERGE_BVEC
MARS_DBG("blk_queue_merge_bvec()\n");
blk_queue_merge_bvec(q, mars_merge_bvec);
#endif
// point of no return
MARS_DBG("add_disk()\n");