]> git.hungrycats.org Git - bees/commitdiff
dedup: use bees_readahead_raw
authorZygo Blaxell <bees@furryterror.org>
Sat, 25 Apr 2026 19:51:19 +0000 (15:51 -0400)
committerZygo Blaxell <bees@furryterror.org>
Tue, 6 Oct 2026 05:51:40 +0000 (01:51 -0400)
This may help long-running IO stalls we are seeing on dedupe operations.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc

index 229e5a20b7ab92cf64dd7e48f26edd8f1eb4ea16..f781e7495f34bf9d6a4beeccc270a091780c4acf 100644 (file)
@@ -186,6 +186,9 @@ BeesContext::dedup(const BeesRangePair &brp_in)
 
        while (true) {
                try {
+                       // bees_readahead_raw has its own BEESNOTE, no need for one here
+                       bees_readahead_raw(brp.first.fd(), brp.first.begin(), brp.first.size());
+                       bees_readahead_raw(brp.second.fd(), brp.second.begin(), brp.second.size());
                        BEESNOTE("waiting to dedup " << brp);
                        auto lock = MultiLocker::get_lock("dedupe");