From: Adam Kupczyk Date: Thu, 8 May 2025 17:17:51 +0000 (+0000) Subject: os/bluestore/bluefs: Fix bluefs_fnode_t::seek X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f6a569b92670e22979f3965c31d287bb6c553031;p=ceph.git os/bluestore/bluefs: Fix bluefs_fnode_t::seek 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 --- diff --git a/src/os/bluestore/bluefs_types.cc b/src/os/bluestore/bluefs_types.cc index 80e948a72f2bb..046527ad5234b 100644 --- a/src/os/bluestore/bluefs_types.cc +++ b/src/os/bluestore/bluefs_types.cc @@ -261,7 +261,7 @@ mempool::bluefs::vector::iterator bluefs_fnode_t::seek( } while (p != extents.end()) { - if ((int64_t) offset >= p->length) { + if (offset >= p->length) { offset -= p->length; ++p; } else {