Re: [PATCH 1/2] erofs-utils: lib: provide helper to disable hashmap shrinking

2024-05-23 Thread Gao Xiang
On 2024/5/24 05:01, Sandeep Dhavale wrote: This helper sets hasmap.shrink_at to 0. This is helpful to iterate over hashmap using hashmap_iter_next() and use hashmap_remove() in single pass efficeintly. Signed-off-by: Sandeep Dhavale Reviewed-by: Gao Xiang Thanks, Gao Xiang

[PATCH 1/2] erofs-utils: lib: provide helper to disable hashmap shrinking

2024-05-23 Thread Sandeep Dhavale via Linux-erofs
This helper sets hasmap.shrink_at to 0. This is helpful to iterate over hashmap using hashmap_iter_next() and use hashmap_remove() in single pass efficeintly. Signed-off-by: Sandeep Dhavale --- include/erofs/hashmap.h | 4 1 file changed, 4 insertions(+) diff --git a/include/erofs/hashmap.