scoutfs: add radix merge retry counter

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-08-26 14:39:12 -07:00
committed by Zach Brown
parent 26ccaca80b
commit 6d7b8233c6
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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) \
+1
View File
@@ -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);