summaryrefslogtreecommitdiff
path: root/include/asm-sh/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2026-02-16 17:48:44 +0100
committerTheodore Ts'o <tytso@mit.edu>2026-03-27 23:31:43 -0400
commit1308255bbf8452762f89f44f7447ce137ecdbcff (patch)
tree41638eb923eb978ca1f132087dd6aa42b9183646 /include/asm-sh/git@git.tavy.me:linux.git
parentbd060afa7cc3e0ad30afa9ecc544a78638498555 (diff)
ext4: fix fsync(2) for nojournal mode
When inode metadata is changed, we sometimes just call ext4_mark_inode_dirty() to track modified metadata. This copies inode metadata into block buffer which is enough when we are journalling metadata. However when we are running in nojournal mode we currently fail to write the dirtied inode buffer during fsync(2) because the inode is not marked as dirty. Use explicit ext4_write_inode() call to make sure the inode table buffer is written to the disk. This is a band aid solution but proper solution requires a much larger rewrite including changes in metadata bh tracking infrastructure. Reported-by: Free Ekanayaka <free.ekanayaka@gmail.com> Link: https://lore.kernel.org/all/87il8nhxdm.fsf@x1.mail-host-address-is-not-set/ CC: stable@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Link: https://patch.msgid.link/20260216164848.3074-4-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'include/asm-sh/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions