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)
commitad211f3e94b314a910d4af03178a0b52a7d1ee0a
tree1085f5cc536507cb1ee937e35ee6fe4d732f3993
parente86807862e6880809f191c4cea7f88a489f0ed34
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