[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251124140924.GB14417@lst.de>
Date: Mon, 24 Nov 2025 15:09:24 +0100
From: Christoph Hellwig <hch@....de>
To: Jan Kara <jack@...e.cz>
Cc: Christoph Hellwig <hch@....de>, Christian Brauner <brauner@...nel.org>,
Al Viro <viro@...iv.linux.org.uk>, David Sterba <dsterba@...e.com>,
Mike Marshall <hubcap@...ibond.com>,
Martin Brandenburg <martin@...ibond.com>,
Carlos Maiolino <cem@...nel.org>, Stefan Roesch <shr@...com>,
Jeff Layton <jlayton@...nel.org>, linux-kernel@...r.kernel.org,
linux-btrfs@...r.kernel.org, gfs2@...ts.linux.dev,
io-uring@...r.kernel.org, devel@...ts.orangefs.org,
linux-unionfs@...r.kernel.org, linux-mtd@...ts.infradead.org,
linux-xfs@...r.kernel.org, linux-nfs@...r.kernel.org
Subject: Re: [PATCH 10/14] fs: factor out a sync_lazytime helper
On Mon, Nov 24, 2025 at 02:31:02PM +0100, Jan Kara wrote:
> > + if (wbc->sync_mode == WB_SYNC_ALL ||
> > + time_after(jiffies, inode->dirtied_time_when +
> > + dirtytime_expire_interval * HZ))
> > + sync_lazytime(inode);
>
> The checking of inode->dirtied_time_when for inode potentially without
> I_DIRTY_TIME set (and thus with unclear value of dirtied_time_when) is kind
> of odd. It is harmless but IMO still not a good practice. Can't we keep
> this condition as is and just call sync_lazytime()?
As in keeping the I_DIRTY_TIME in the caller? Sure, I could do that.
Powered by blists - more mailing lists