]> 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)
commit310f3670f717b4d97a79052a89257125a5b6e6eb
tree1085f5cc536507cb1ee937e35ee6fe4d732f3993
parent978a802391e69ad3c10f8eb6ad6a89b32b3b3503
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