1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 13:25:45 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-10-12 16:18:48 -04:00
parent fb0e676ee8
commit e861957632

View File

@ -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()) {