Compare commits
2 Commits
c5d8b27c44
...
3b9c970e00
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | 3b9c970e00 | |
Vitaliy Filippov | 48f023292d |
|
@ -369,12 +369,15 @@ std::vector<osd_chain_read_t> osd_t::collect_chained_read_requests(osd_op_t *cur
|
||||||
global_bitmap[cur>>3] = global_bitmap[cur>>3] | (part_bitmap[cur>>3] & (1 << (cur&7)));
|
global_bitmap[cur>>3] = global_bitmap[cur>>3] | (part_bitmap[cur>>3] & (1 << (cur&7)));
|
||||||
}
|
}
|
||||||
// Add request
|
// Add request
|
||||||
chain_reads.push_back((osd_chain_read_t){
|
if (cur_op->req.rw.len)
|
||||||
.chain_pos = chain_pos,
|
{
|
||||||
.inode = op_data->read_chain[chain_pos],
|
chain_reads.push_back((osd_chain_read_t){
|
||||||
.offset = start*bs_bitmap_granularity,
|
.chain_pos = chain_pos,
|
||||||
.len = (end-start)*bs_bitmap_granularity,
|
.inode = op_data->read_chain[chain_pos],
|
||||||
});
|
.offset = start*bs_bitmap_granularity,
|
||||||
|
.len = (end-start)*bs_bitmap_granularity,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return chain_reads;
|
return chain_reads;
|
||||||
|
|
Loading…
Reference in New Issue