Re: [PATCH] ext4: cache es->s_journal_inum in ext4_sb_info

From: Theodore Ts'o
Date: Tue Mar 18 2025 - 22:34:57 EST


On Tue, Mar 18, 2025 at 01:42:31PM +0530, Ojaswin Mujoo wrote:
> > So this is something we need to do if the journal is actived, and if
> > it's active, then sbi->s_journal will be non-NULL, and so we can just
> > check to see if inode == sbi->s_journal instead. This will simplify
>
> I believe you mean inode == sbi->s_journal->j_inode here right?

Yes, that's what I meant; sorry for the not catching this before I
sent my reply.

Cheers,

- Ted