mirror of
https://github.com/ceph/ceph
synced 2025-03-20 09:16:59 +00:00
Merge pull request #38043 from jhonxue/wip-fix-bluestore-bitmap-allocator
osd: fix bluestore bitmap allocator calculate wrong last_pos with hint Reviewed-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
commit
3c58e34f10
@ -708,7 +708,7 @@ protected:
|
||||
return;
|
||||
}
|
||||
if (hint != 0) {
|
||||
last_pos = (hint / d) < l2.size() ? p2align(hint, d) : 0;
|
||||
last_pos = (hint / (d * l2_granularity)) < l2.size() ? p2align(hint / l2_granularity, d) : 0;
|
||||
}
|
||||
auto l2_pos = last_pos;
|
||||
auto last_pos0 = last_pos;
|
||||
|
Loading…
Reference in New Issue
Block a user