diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-02-19 06:07:36 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-02-19 06:07:36 +0300 |
commit | 576d18ed60f5465110087c5e0eb1010de13e374d (patch) | |
tree | 02d2ec219a1bae3e5b7cbd471360d2e0ebbe45be /fs/ext4 | |
parent | ed65b00f8de1d0687565a1ad6511901a721adb66 (diff) | |
download | linux-576d18ed60f5465110087c5e0eb1010de13e374d.tar.xz |
ext4: shutdown should not prevent get_write_access
The ext4 forced shutdown flag needs to prevent new handles from being
started, but it needs to allow existing handles to complete. So the
forced shutdown flag should not force ext4_journal_get_write_access to
fail.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/ext4_jbd2.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 2d593201cf7a..7c70b08d104c 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -166,13 +166,6 @@ int __ext4_journal_get_write_access(const char *where, unsigned int line, might_sleep(); if (ext4_handle_valid(handle)) { - struct super_block *sb; - - sb = handle->h_transaction->t_journal->j_private; - if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) { - jbd2_journal_abort_handle(handle); - return -EIO; - } err = jbd2_journal_get_write_access(handle, bh); if (err) ext4_journal_abort_handle(where, line, __func__, bh, |