]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/bluefs: Fix bluefs_fnode_t::seek 63188/head
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 8 May 2025 17:17:51 +0000 (17:17 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 8 May 2025 17:21:06 +0000 (17:21 +0000)
When offset is larger than 2^63 the function logic thought valid
extent has been found. Fixed now.

Fixes: https://tracker.ceph.com/issues/70911
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/bluefs_types.cc

index 80e948a72f2bbf7345714122660810a0dfba87a0..046527ad5234b7708c3eab777401c40d69d6421d 100644 (file)
@@ -261,7 +261,7 @@ mempool::bluefs::vector<bluefs_extent_t>::iterator bluefs_fnode_t::seek(
   }
 
   while (p != extents.end()) {
-    if ((int64_t) offset >= p->length) {
+    if (offset >= p->length) {
       offset -= p->length;
       ++p;
     } else {