From e8619576323099d498f532310742f182b694a533 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 12 Oct 2021 16:18:48 -0400 Subject: [PATCH] roots: use default nr_items BtrfsIoctlSearchKeyV2's constructor now fills in nr_items = 1, so we don't need to set it explicitly any more. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index a62ead3..411f9b4 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -632,7 +632,6 @@ BeesRoots::open_root_nocache(uint64_t rootid) BEESTRACE("sk " << sk); while (sk.min_objectid <= rootid) { - sk.nr_items = 1; sk.do_ioctl(m_ctx->root_fd()); if (sk.m_result.empty()) { @@ -769,7 +768,6 @@ BeesRoots::next_root(uint64_t root) sk.min_objectid = root + 1; while (true) { - sk.nr_items = 1; sk.do_ioctl(m_ctx->root_fd()); if (sk.m_result.empty()) {