]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: check for shutdown and r/o file system in ext4_write_inode()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 19 Dec 2018 19:36:58 +0000 (14:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Dec 2018 19:36:58 +0000 (14:36 -0500)
commit4b8d5915c2cae10257c263e972c9fe53a7766812
tree633eb9e94a620d818dbb8bd6cdd288c6f1dc5f49
parent1eb59de1bb0b46085bb472df9fb51c36f6768fb7
ext4: check for shutdown and r/o file system in ext4_write_inode()

If the file system has been shut down or is read-only, then
ext4_write_inode() needs to bail out early.

Also use jbd2_complete_transaction() instead of ext4_force_commit() so
we only force a commit if it is needed.

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