From daf8a2cde1bf0770c237b4cc9898197789010c30 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 11 Oct 2021 23:42:17 -0400 Subject: [PATCH] extentwalker: use default sizing of TREE_SEARCH_V2 buffers Now that we can guess the size more or less automatically, there's no need to make it unnecessarily large. Signed-off-by: Zygo Blaxell --- lib/extentwalker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extentwalker.cc b/lib/extentwalker.cc index 8fa883d..83f430e 100644 --- a/lib/extentwalker.cc +++ b/lib/extentwalker.cc @@ -496,7 +496,7 @@ namespace crucible { BtrfsExtentWalker::Vec BtrfsExtentWalker::get_extent_map(off_t pos) { - BtrfsIoctlSearchKey sk(65536); + BtrfsIoctlSearchKey sk; if (!m_root_fd) { m_root_fd = m_fd; }