瀏覽代碼

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
Theodore Ts'o 7 年之前
父節點
當前提交
576d18ed60
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      fs/ext4/ext4_jbd2.c

+ 0 - 7
fs/ext4/ext4_jbd2.c

@@ -166,13 +166,6 @@ int __ext4_journal_get_write_access(const char *where, unsigned int line,
 	might_sleep();
 	might_sleep();
 
 
 	if (ext4_handle_valid(handle)) {
 	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);
 		err = jbd2_journal_get_write_access(handle, bh);
 		if (err)
 		if (err)
 			ext4_journal_abort_handle(where, line, __func__, bh,
 			ext4_journal_abort_handle(where, line, __func__, bh,