]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix incorrect bluefs_used accounting when releasing old extents 67420/head
authorJaya Prakash <jayaprakash@ibm.com>
Thu, 19 Feb 2026 14:17:05 +0000 (14:17 +0000)
committerJaya Prakash <jayaprakash@ibm.com>
Thu, 19 Feb 2026 14:29:24 +0000 (14:29 +0000)
commitc6aa9deb16d902e47d17cd507ab033efec853b23
tree5e6b84ec2a6b5b6fda0dfa674f21ff2864e90451
parent9b5d5f41beea3a7a947711399ea3febdb654af4d
os/bluestore: fix incorrect bluefs_used accounting when releasing old extents

`bluefs_used` was decremented using to_release.size(), which represents the number
of extents (always 1 in this case), instead of the actual extent length in bytes.
This resulted in incorrect BlueFS space accounting when using the shared allocator.

The fix updates the decrement to use `old_ext.length`, ensuring accurate tracking.

Fixes: https://tracker.ceph.com/issues/75028
Signed-off-by: Jaya Prakash <jayaprakash@ibm.com>
src/os/bluestore/BlueFS.cc