aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2021-07-29 23:11:58 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2021-07-29 23:13:54 +0000
commit412b5e40a721430adba1b4abae210641f733f976 (patch)
treedf9b198191877535d69ae216b5715d19084bdad2
parent2572376f7f6412bc69bd6138e9ac9a6efd7642af (diff)
Diagnotic improvement to soft dependency structure management.
The soft updates diagnotic code keeps a list for each type of soft update dependency. When a new block is allocated for a file it is initially tracked by a "newblk" dependency. The "newblk" dependency eventually becomes either an "allocdirect" dependency or an "indiralloc" dependency. The diagnotic code failed to move the "newblk" from the list of "newblk"s to its new type list. No functional change intended. Reviewed by: Chuck Silvers (as part of a larger change) Tested by: Peter Holm (as part of a larger change) Sponsored by: Netflix
-rw-r--r--sys/ufs/ffs/ffs_softdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 75120175e4a1..da80f28bc814 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1293,6 +1293,10 @@ workitem_reassign(item, newtype)
dep_total[newtype]++;
FREE_GBLLOCK(&lk);
item->wk_type = newtype;
+#ifdef INVARIANTS
+ LIST_REMOVE(item, wk_all);
+ LIST_INSERT_HEAD(&ump->softdep_alldeps[newtype], item, wk_all);
+#endif
}
/*