Linux block layer
 help / color / mirror / Atom feed
* [PATCH v3 0/13] fs: Various I_DIRTY_* state handling fixes
@ 2026-11-23  9:00 Jan Kara
  2026-11-23  9:00 ` [PATCH v3 01/13] bdev: Drop pointless loop from blkdev_flush_mapping() Jan Kara
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Jan Kara @ 2026-11-23  9:00 UTC (permalink / raw)
  To: Christian Brauner
  Cc: linux-fsdevel, Andreas Gruenbacher, gfs2, Mike Marshall,
	Martin Brandenburg, devel, Dave Kleikamp, jfs-discussion,
	Carlos Maiolino, linux-xfs, David Howells, Marc Dionne, linux-afs,
	Miklos Szeredi, fuse-devel, linux-block, Chuck Lever, Jeff Layton,
	linux-nfs, Eric Biggers, Jaegeuk Kim, linux-fscrypt, Jan Kara

Hello,

this series is a result of my audit of I_DIRTY_* state handling fixes. Over the
years some pointless code or code with smaller or larger bugs has accumulated
in filesystems around handling of inode dirty state. In particular testing
for I_DIRTY_PAGES is very subtle (and racy without holding i_lock), some places
forget that I_DIRTY_TIME also means inode has dirty metadata etc. So this
patch set removes direct checks of dirtiness state from filesystems and either
change them to directly testing PAGECACHE_TAG_DIRTY or to a helper function
which performs appropriate dirtiness check reliably. I think this has gathered
enough feedback to enter VFS tree now.

Changes since v2:
* Added Reviewed-by tags
* Improved commit messages

Changes since v1:
* Fixed orangefs checking of inode dirtiness
* Added Reviewed-by & Acked-by tags
* Added Fixes tags
* Made gfs2_fsync() conversion more bug-to-bug compatible


								Honza
Previous versions:
Link: http://lore.kernel.org/r/20261113083336.15152-1-jack@suse.cz # v1
Link: http://lore.kernel.org/r/20261116171044.6938-1-jack@suse.cz # v2

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-23  9:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  9:00 [PATCH v3 0/13] fs: Various I_DIRTY_* state handling fixes Jan Kara
2026-11-23  9:00 ` [PATCH v3 01/13] bdev: Drop pointless loop from blkdev_flush_mapping() Jan Kara
2026-11-23  9:00 ` [PATCH v3 02/13] xfs: Drop pointless I_DIRTY_PAGES check in xfs_can_free_cowblocks() Jan Kara
2026-11-23  9:00 ` [PATCH v3 03/13] orangefs: Check PAGECACHE_TAG_DIRTY instead of I_DIRTY_PAGES inode state Jan Kara
2026-11-23  9:00 ` [PATCH v3 04/13] fs: Provide inode_is_dirty() helper Jan Kara
2026-11-23  9:00 ` [PATCH v3 05/13] jfs: Use inode_is_dirty() in jfs_fsync() Jan Kara
2026-11-23  9:00 ` [PATCH v3 06/13] gfs2: Avoid racy dirtiness check in gfs2_fsync() Jan Kara
2026-11-23  9:00 ` [PATCH v3 07/13] fuse: Use inode_is_dirty() check in fuse_evict_inode() Jan Kara
2026-11-23  9:00 ` [PATCH v3 08/13] fs: Provide inode_or_folios_dirty() helper Jan Kara
2026-11-23  9:00 ` [PATCH v3 09/13] gfs2: Fix dirtiness checks in gfs2_write_inode() and evict_linked_inode() Jan Kara
2026-11-23  9:00 ` [PATCH v3 10/13] afs: Use inode_or_folios_dirty() in afs_evict_inode() Jan Kara
2026-11-23  9:00 ` [PATCH v3 11/13] nfsd: Use inode_or_folios_dirty() for dirtiness check in wait_for_concurrent_writes() Jan Kara
2026-11-23  9:00 ` [PATCH v3 12/13] fscrypt: Use inode_or_folios_dirty() instead of explicit state check Jan Kara
2026-11-23  9:00 ` [PATCH v3 13/13] fs: Use inode_or_folios_dirty() in __inode_lru_list_add() Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox