]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jan 2019 08:41:15 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jan 2019 08:41:15 +0000 (09:41 +0100)
added patches:
ext4-track-writeback-errors-using-the-generic-tracking-infrastructure.patch

queue-3.18/ext4-track-writeback-errors-using-the-generic-tracking-infrastructure.patch [new file with mode: 0644]
queue-3.18/series

diff --git a/queue-3.18/ext4-track-writeback-errors-using-the-generic-tracking-infrastructure.patch b/queue-3.18/ext4-track-writeback-errors-using-the-generic-tracking-infrastructure.patch
new file mode 100644 (file)
index 0000000..e142af2
--- /dev/null
@@ -0,0 +1,33 @@
+From 95cb67138746451cc84cf8e516e14989746e93b0 Mon Sep 17 00:00:00 2001
+From: Theodore Ts'o <tytso@mit.edu>
+Date: Mon, 31 Dec 2018 00:11:07 -0500
+Subject: ext4: track writeback errors using the generic tracking infrastructure
+
+From: Theodore Ts'o <tytso@mit.edu>
+
+commit 95cb67138746451cc84cf8e516e14989746e93b0 upstream.
+
+We already using mapping_set_error() in fs/ext4/page_io.c, so all we
+need to do is to use file_check_and_advance_wb_err() when handling
+fsync() requests in ext4_sync_file().
+
+Signed-off-by: Theodore Ts'o <tytso@mit.edu>
+Cc: stable@kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/ext4/fsync.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/fs/ext4/fsync.c
++++ b/fs/ext4/fsync.c
+@@ -146,6 +146,9 @@ int ext4_sync_file(struct file *file, lo
+                       ret = err;
+       }
+ out:
++      err = file_check_and_advance_wb_err(file);
++      if (ret == 0)
++              ret = err;
+       trace_ext4_sync_file_exit(inode, ret);
+       return ret;
+ }
index 47a09b88853b363ee0ca8ba55b199244544b5aad..35dbcfda36fe34f7d1f8603d1d2961c28e57f0c2 100644 (file)
@@ -8,3 +8,4 @@ slab-alien-caches-must-not-be-initialized-if-the-allocation-of-the-alien-cache-f
 acpi-power-skip-duplicate-power-resource-references-in-_prx.patch
 i2c-dev-prevent-adapter-retries-and-timeout-being-set-as-minus-value.patch
 crypto-cts-fix-crash-on-short-inputs.patch
+ext4-track-writeback-errors-using-the-generic-tracking-infrastructure.patch