mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
os/bluestore: consolidate extents from the same device only
Presumably Fixes: https://tracker.ceph.com/issues/42223 Signed-off-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
parent
1c9efb10cd
commit
20a90698a2
@ -91,6 +91,7 @@ struct bluefs_fnode_t {
|
||||
void append_extent(const bluefs_extent_t& ext) {
|
||||
if (!extents.empty() &&
|
||||
extents.back().end() == ext.offset &&
|
||||
extents.back().bdev == ext.bdev &&
|
||||
(uint64_t)extents.back().length + (uint64_t)ext.length < 0xffffffff) {
|
||||
extents.back().length += ext.length;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user