mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-03 22:06:43 +00:00
We were manually manipulating the level counts in the super in a bunch of places under the manifest rwsem. This refactors them into simple get and add functions. We protect them with a seqcount so that we'll be able read them without blocking (from trans hold attempts). We also add a helper for testing that a level is full because we already used different comparisons in two call sites. Signed-off-by: Zach Brown <zab@versity.com>