diff --git a/kmod/src/counters.h b/kmod/src/counters.h index acfe5c7a..06314b40 100644 --- a/kmod/src/counters.h +++ b/kmod/src/counters.h @@ -91,6 +91,7 @@ EXPAND_COUNTER(radix_enospc_data) \ EXPAND_COUNTER(radix_enospc_paths) \ EXPAND_COUNTER(radix_enospc_synth) \ + EXPAND_COUNTER(radix_merge_retry) \ EXPAND_COUNTER(trans_commit_data_alloc_low) \ EXPAND_COUNTER(trans_commit_fsync) \ EXPAND_COUNTER(trans_commit_full) \ diff --git a/kmod/src/radix.c b/kmod/src/radix.c index a3d10272..c8940d3f 100644 --- a/kmod/src/radix.c +++ b/kmod/src/radix.c @@ -1454,6 +1454,7 @@ wrapped: /* back out and retry if no input left, or inp not ro */ if (inp_sm == 0 || (inp != src && paths_share_blocks(inp_path, src_path))) { + scoutfs_inc_counter(sb, radix_merge_retry); free_path(sb, inp_path); inp_path = NULL; free_change(sb, chg);