[PATCH 2/6] fs: add frozen sb state helpers
Darrick J. Wong
djwong at kernel.org
Thu Jun 8 08:05:22 PDT 2023
On Wed, Jun 07, 2023 at 10:05:46PM -0700, Christoph Hellwig wrote:
> On Sun, May 07, 2023 at 06:17:13PM -0700, Luis Chamberlain wrote:
> > Provide helpers so that we can check a superblock frozen state.
> > This will make subsequent changes easier to read. This makes
> > no functional changes.
>
> I'll look at the further changes, but having frozen/unfrozen helpers
> that sound binary while we have 4 shades of gray seems rather confusing
> to me.
That was my first reaction too.
Then it occurred to me that *some* people might still be clued into that
subtlety if they happened to ask themselves why there are predicates for
_is_frozen and _is_unfrozen.
But in the end I think I decided that an enum isn't subtle like that at
all and clearly forgot to reply with that.
--D
More information about the kexec
mailing list