Zach BrownandZach Brown 532256271c scoutfs: simplify scoutfs_write_super()
The pattern of advancing and writing a "dirty super" comes from the time
when the format had two persistent super blocks.  One was kept in memory
and modified as changes were made.  Advancing it changed which of the
two supers would be eventually written.

This no longer makes sense now that we only have one super block.
Remove the idea of advancing and writing an implicit dirty super block
that's stored in the super block info.  Instead use a single
scoutfs_write_super() which takes the super block struct to write.

We still store and increment the hdr.gen in the super block.  It used to
be used to tell which of the two super blocks are more recent, now it is
just some information that can tell us something about the life of the
super block.

Signed-off-by: Zach Brown <zab@versity.com>
2019-08-20 15:52:13 -07:00
S
Description
No description provided
7.7 MiB
Languages
C 86.4%
Shell 10%
Roff 2.5%
TeX 0.8%
Makefile 0.3%