Compare commits
1 Commits
3b9c970e00
...
c5d8b27c44
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | c5d8b27c44 |
|
@ -369,15 +369,12 @@ 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
|
||||||
if (cur_op->req.rw.len)
|
chain_reads.push_back((osd_chain_read_t){
|
||||||
{
|
.chain_pos = chain_pos,
|
||||||
chain_reads.push_back((osd_chain_read_t){
|
.inode = op_data->read_chain[chain_pos],
|
||||||
.chain_pos = chain_pos,
|
.offset = start*bs_bitmap_granularity,
|
||||||
.inode = op_data->read_chain[chain_pos],
|
.len = (end-start)*bs_bitmap_granularity,
|
||||||
.offset = start*bs_bitmap_granularity,
|
});
|
||||||
.len = (end-start)*bs_bitmap_granularity,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return chain_reads;
|
return chain_reads;
|
||||||
|
|
Loading…
Reference in New Issue