summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-11-09 17:51:17 +0100
committerChristian Brauner <brauner@kernel.org>2026-11-11 11:59:09 +0100
commitc2e595a57aba6aa166053776969f31cc510b3e71 (patch)
tree5b9e01862fdf0cc888ac5bc0bf5b6e81f8cf46bd /include/linux
parent57a84ef0520b0d17e930ff15cbd13af687e6d233 (diff)
ext2: don't read the inode block in ext2_sync_inode_metadata()
ext2_sync_inode_metadata() looks the inode block up with ext2_get_inode() which reads it from disk if it isn't cached. But a block that isn't cached is neither dirty nor under writeback, so there's nothing to write or to wait for. That read is also something we can't afford once inode eviction calls ->sync_inode_metadata() from reclaim. So look the block up with sb_find_get_block_nonatomic() instead, the way fat_sync_inode_metadata() already does. Cc: stable@vger.kernel.org # v7.3 Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20261109-work-inode-metadata_writeback-v3-2-91ac6c024018@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions