Re: [PATCH v2 1/2] tmpfs: Add per-superblock i_ino support

From: Amir Goldstein
Date: Thu Jan 02 2020 - 15:08:47 EST


On Thu, Jan 2, 2020 at 10:00 PM Chris Down <chris@xxxxxxxxxxxxxx> wrote:
>
> Amir Goldstein writes:
> >Wouldn't it be easier to check max_inodes instead of passing this
> >use_sb_ino arg?
> >Is there any case where they *need* to differ?
>
> Hmm, I suppose probably not? In that case should I just check against
> SB_KERNMOUNT, since max_inodes can only be 0 in that case?
>

Yes, I think that would be best.

Thanks,
Amir.