]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/bluestore/fastbmap_allocator_impl.h
import 15.2.9
[ceph.git] / ceph / src / os / bluestore / fastbmap_allocator_impl.h
index ed2d4c8cc98ce4be65d864e1dc42474e5ea24c56..52a1edee2f8a60f040417110fef26f26bdb2f86c 100644 (file)
@@ -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;