]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use ext4_write_inode() when fsyncing w/o a journal
authorTheodore Ts'o <tytso@mit.edu>
Mon, 31 Dec 2018 05:10:48 +0000 (00:10 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Dec 2018 05:10:48 +0000 (00:10 -0500)
commit8d77e69a5ecef983b44a9c7a80ca69ee6bbe039b
tree1085f5cc536507cb1ee937e35ee6fe4d732f3993
parent39878f1e674fcfc9a81714254144083a5bdec26c
ext4: use ext4_write_inode() when fsyncing w/o a journal

In no-journal mode, we previously used __generic_file_fsync() in
no-journal mode.  This triggers a lockdep warning, and in addition,
it's not safe to depend on the inode writeback mechanism in the case
ext4.  We can solve both problems by calling ext4_write_inode()
directly.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/fsync.c