]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: clear I_DIRTY_TIME in sync_lazytime
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Mar 2026 13:44:04 +0000 (14:44 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 17 Mar 2026 14:12:15 +0000 (15:12 +0100)
commitf8b8820a4a16c4ef673e90ded41e8348514e53f0
tree066b31f0453ff306fbbe6a383d5c0576509feadf
parente9075e420a1eb3b52c60f3b95893a55e77419ce8
fs: clear I_DIRTY_TIME in sync_lazytime

For file systems implementing ->sync_lazytime, I_DIRTY_TIME fails to get
cleared in sync_lazytime, and might cause additional calls to
sync_lazytime during inode deactivation.  Use the same pattern as in
__mark_inode_dirty to clear the flag under the inode lock.

Fixes: 5cf06ea56ee6 ("fs: add a ->sync_lazytime method")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260317134409.1691317-1-hch@lst.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fs-writeback.c