Re: [PATCH 1/2] fs/super: Add a flag to mark super block defunc

From: Christoph Hellwig
Date: Wed May 11 2022 - 10:54:25 EST


On Wed, May 11, 2022 at 11:30:56AM +1000, Daniil Lunev wrote:
> File system can mark a block "defunc" in order to prevent matching
> against it in a new mount.

Why use a bool instead of using s_iflags?

Also I suspect we should never reuse a force mounted superblock,
but at least for block devices we should also not allow allocating
a new one for that case but just refuse the mount.