aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-12-23 19:00:29 +0800
committerColy Li <colyli@suse.de>2018-12-23 19:00:29 +0800
commit9439e8bcba968205cb284fa40b672e5ab15fe76a (patch)
tree345441ab5e1596043182c224fd0cf93d137621b5
parent08849b00600107b3c0a3ae9f29c2e1cf77c8324e (diff)
downloadbcache-patches-9439e8bcba968205cb284fa40b672e5ab15fe76a.tar.gz
for-next: re-order patch prefix numbers
-rw-r--r--for-next/0001-bcache-not-use-hard-coded-memset-size-in-bch_cache_a.patch4
-rw-r--r--for-next/0002-bcache-export-backing_dev_name-via-sysfs.patch (renamed from for-next/0001-bcache-export-backing_dev_name-via-sysfs.patch)4
-rw-r--r--for-next/0003-bcache-export-backing_dev_uuid-via-sysfs.patch (renamed from for-next/0002-bcache-export-backing_dev_uuid-via-sysfs.patch)4
-rw-r--r--for-next/0004-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch (renamed from for-next/0001-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch)5
-rw-r--r--for-next/0005-bcache-treat-stale-dirty-keys-as-bad-keys.patch (renamed from for-next/0001-bcache-treat-stale-dirty-keys-as-bad-keys.patch)4
-rw-r--r--for-next/0006-bcache-fix-input-integer-overflow-of-congested-thres.patch (renamed from for-next/0001-bcache-fix-input-integer-overflow-of-congested-thres.patch)4
-rw-r--r--for-next/0007-bcache-fix-input-overflow-to-sequential_cutoff.patch (renamed from for-next/0002-bcache-fix-input-overflow-to-sequential_cutoff.patch)4
-rw-r--r--for-next/0008-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch (renamed from for-next/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch)4
-rw-r--r--for-next/0009-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch (renamed from for-next/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch)6
-rw-r--r--for-next/0010-bcache-fix-input-overflow-to-writeback_delay.patch (renamed from for-next/0005-bcache-fix-input-overflow-to-writeback_delay.patch)6
-rw-r--r--for-next/0011-bcache-fix-potential-div-zero-error-of-writeback_rat.patch (renamed from for-next/0006-bcache-fix-potential-div-zero-error-of-writeback_rat.patch)6
-rw-r--r--for-next/0012-bcache-fix-potential-div-zero-error-of-writeback_rat.patch (renamed from for-next/0007-bcache-fix-potential-div-zero-error-of-writeback_rat.patch)6
-rw-r--r--for-next/0013-bcache-fix-input-overflow-to-writeback_rate_minimum.patch (renamed from for-next/0008-bcache-fix-input-overflow-to-writeback_rate_minimum.patch)6
-rw-r--r--for-next/0014-bcache-fix-input-overflow-to-journal_delay_ms.patch (renamed from for-next/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch)8
-rw-r--r--for-next/0015-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch (renamed from for-next/0010-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch)6
-rw-r--r--for-next/0016-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch (renamed from for-next/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch)6
16 files changed, 42 insertions, 41 deletions
diff --git a/for-next/0001-bcache-not-use-hard-coded-memset-size-in-bch_cache_a.patch b/for-next/0001-bcache-not-use-hard-coded-memset-size-in-bch_cache_a.patch
index fe3ad5c..2548e57 100644
--- a/for-next/0001-bcache-not-use-hard-coded-memset-size-in-bch_cache_a.patch
+++ b/for-next/0001-bcache-not-use-hard-coded-memset-size-in-bch_cache_a.patch
@@ -1,7 +1,7 @@
-From 953e7c069208c947817de96c29e4444ebac62dcc Mon Sep 17 00:00:00 2001
+From 6b24f6014ce49e13c2b4510c049d3c786ceeecdb Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 14:10:08 +0800
-Subject: [PATCH] bcache: not use hard coded memset size in
+Subject: [PATCH 01/16] bcache: not use hard coded memset size in
bch_cache_accounting_clear()
In stats.c:bch_cache_accounting_clear(), a hard coded number '7' is
diff --git a/for-next/0001-bcache-export-backing_dev_name-via-sysfs.patch b/for-next/0002-bcache-export-backing_dev_name-via-sysfs.patch
index 1db9621..8a31046 100644
--- a/for-next/0001-bcache-export-backing_dev_name-via-sysfs.patch
+++ b/for-next/0002-bcache-export-backing_dev_name-via-sysfs.patch
@@ -1,7 +1,7 @@
-From c0ebe9729d1d3e56b17da39e9d42c9edf52dbcdf Mon Sep 17 00:00:00 2001
+From 6ab5e031803f38466b698274bb4a7c883c31c756 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Tue, 18 Dec 2018 21:49:57 +0800
-Subject: [PATCH 1/2] bcache: export backing_dev_name via sysfs
+Subject: [PATCH 02/16] bcache: export backing_dev_name via sysfs
This patch export dc->backing_dev_name to sysfs file
/sys/block/bcache<?>/bcache/backing_dev_name, then people or user space
diff --git a/for-next/0002-bcache-export-backing_dev_uuid-via-sysfs.patch b/for-next/0003-bcache-export-backing_dev_uuid-via-sysfs.patch
index 6b790d8..6972780 100644
--- a/for-next/0002-bcache-export-backing_dev_uuid-via-sysfs.patch
+++ b/for-next/0003-bcache-export-backing_dev_uuid-via-sysfs.patch
@@ -1,7 +1,7 @@
-From 8518188f8cc754b742739d354a3f951ba7544486 Mon Sep 17 00:00:00 2001
+From 8ae0f2bd79e572565bd7e1e283459076339e0b1a Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Tue, 18 Dec 2018 22:11:32 +0800
-Subject: [PATCH 2/2] bcache: export backing_dev_uuid via sysfs
+Subject: [PATCH 03/16] bcache: export backing_dev_uuid via sysfs
When there are multiple bcache devices, after a reboot the name of
bcache devices may change (e.g. current /dev/bcache1 was /dev/bcache0
diff --git a/for-next/0001-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch b/for-next/0004-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch
index 146d6f6..1cd252e 100644
--- a/for-next/0001-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch
+++ b/for-next/0004-bcache-fix-indentation-issue-remove-tabs-on-a-hunk-o.patch
@@ -1,7 +1,8 @@
-From 3ec6c8ace3b4e97e2d89ce1ea7fd0bd7a6ede4ba Mon Sep 17 00:00:00 2001
+From fd7213b04f7747c3bbfc3bfb771528ea2172012c Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Fri, 21 Dec 2018 23:18:12 +0000
-Subject: [PATCH] bcache: fix indentation issue, remove tabs on a hunk of code
+Subject: [PATCH 04/16] bcache: fix indentation issue, remove tabs on a hunk of
+ code
There is a hunk of code that is indented one level too deep, fix this
by removing the extra tabs.
diff --git a/for-next/0001-bcache-treat-stale-dirty-keys-as-bad-keys.patch b/for-next/0005-bcache-treat-stale-dirty-keys-as-bad-keys.patch
index 6b6cb92..d933638 100644
--- a/for-next/0001-bcache-treat-stale-dirty-keys-as-bad-keys.patch
+++ b/for-next/0005-bcache-treat-stale-dirty-keys-as-bad-keys.patch
@@ -1,7 +1,7 @@
-From 0dfc722c9354bac96e312fc473b1bfe450abf784 Mon Sep 17 00:00:00 2001
+From 82af3bfdc0db86c60c77b2b0c61c5bd0baa20223 Mon Sep 17 00:00:00 2001
From: Tang Junhui <tang.junhui.linux@gmail.com>
Date: Sun, 23 Dec 2018 15:47:39 +0800
-Subject: [PATCH] bcache: treat stale && dirty keys as bad keys
+Subject: [PATCH 05/16] bcache: treat stale && dirty keys as bad keys
Stale && dirty keys can be produced in the follow way:
After writeback in write_dirty_finish(), dirty keys k1 will
diff --git a/for-next/0001-bcache-fix-input-integer-overflow-of-congested-thres.patch b/for-next/0006-bcache-fix-input-integer-overflow-of-congested-thres.patch
index 79a27e9..a2f2d15 100644
--- a/for-next/0001-bcache-fix-input-integer-overflow-of-congested-thres.patch
+++ b/for-next/0006-bcache-fix-input-integer-overflow-of-congested-thres.patch
@@ -1,7 +1,7 @@
-From e6a91bf23ce594e697f8ff78ced90ed8182422b2 Mon Sep 17 00:00:00 2001
+From f317960256267b5dfd2417d5df6fc37337a8fe01 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 14:54:07 +0800
-Subject: [PATCH 01/11] bcache: fix input integer overflow of congested
+Subject: [PATCH 06/16] bcache: fix input integer overflow of congested
threshold
Cache set congested threshold values congested_read_threshold_us and
diff --git a/for-next/0002-bcache-fix-input-overflow-to-sequential_cutoff.patch b/for-next/0007-bcache-fix-input-overflow-to-sequential_cutoff.patch
index 002acbb..97cdea6 100644
--- a/for-next/0002-bcache-fix-input-overflow-to-sequential_cutoff.patch
+++ b/for-next/0007-bcache-fix-input-overflow-to-sequential_cutoff.patch
@@ -1,7 +1,7 @@
-From 55a3dba551670d338252d6b185b18582156c91fe Mon Sep 17 00:00:00 2001
+From 44841fcc0f15b27a45d6c998b5a654f50c62611e Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 15:17:47 +0800
-Subject: [PATCH 02/11] bcache: fix input overflow to sequential_cutoff
+Subject: [PATCH 07/16] bcache: fix input overflow to sequential_cutoff
People may set sequential_cutoff of a cached device via sysfs file,
but current code does not check input value overflow. E.g. if value
diff --git a/for-next/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch b/for-next/0008-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
index 53ceb4c..a6b7b57 100644
--- a/for-next/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
+++ b/for-next/0008-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
@@ -1,7 +1,7 @@
-From 29b3582aba1e717b612825cb97bb7e9d3725748d Mon Sep 17 00:00:00 2001
+From 0836030599493de360cf00701a00d176818adefe Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 16:54:50 +0800
-Subject: [PATCH 03/11] bcache: add sysfs_strtoul_bool() for setting bit-field
+Subject: [PATCH 08/16] bcache: add sysfs_strtoul_bool() for setting bit-field
variables
When setting bool values via sysfs interface, e.g. writeback_metadata,
diff --git a/for-next/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch b/for-next/0009-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
index 092deaf..62b1e34 100644
--- a/for-next/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
+++ b/for-next/0009-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
@@ -1,7 +1,7 @@
-From 1035104c3e2d842a74f8d198ff355a6527d90a74 Mon Sep 17 00:00:00 2001
+From a6075dbdc9599c71c70ff29d4ce09b4c44648fb7 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 17:40:45 +0800
-Subject: [PATCH 04/11] bcache: use sysfs_strtoul_bool() to set bit-field
+Subject: [PATCH 09/16] bcache: use sysfs_strtoul_bool() to set bit-field
variables
When setting bcache parameters via sysfs, there are some variables are
@@ -33,7 +33,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 29564bcb76c3..0753568631e5 100644
+index 29564bcb76c3..8dcafae6dd8a 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -274,9 +274,9 @@ STORE(__cached_dev)
diff --git a/for-next/0005-bcache-fix-input-overflow-to-writeback_delay.patch b/for-next/0010-bcache-fix-input-overflow-to-writeback_delay.patch
index 45514e5..5d82dfc 100644
--- a/for-next/0005-bcache-fix-input-overflow-to-writeback_delay.patch
+++ b/for-next/0010-bcache-fix-input-overflow-to-writeback_delay.patch
@@ -1,7 +1,7 @@
-From 234409a27ab610d8646b93b5767f4008d95b98b7 Mon Sep 17 00:00:00 2001
+From dc3bd6020601382a787fef2b5b86b29b61e1dc17 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 18:02:07 +0800
-Subject: [PATCH 05/11] bcache: fix input overflow to writeback_delay
+Subject: [PATCH 10/16] bcache: fix input overflow to writeback_delay
Sysfs file writeback_delay is used to configure dc->writeback_delay
which is type unsigned int. But bcache code uses sysfs_strtoul() to
@@ -19,7 +19,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 0753568631e5..6a1774a6c5fa 100644
+index 8dcafae6dd8a..16cd710f5f8b 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -277,7 +277,7 @@ STORE(__cached_dev)
diff --git a/for-next/0006-bcache-fix-potential-div-zero-error-of-writeback_rat.patch b/for-next/0011-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
index 8b593dd..5098273 100644
--- a/for-next/0006-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
+++ b/for-next/0011-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
@@ -1,7 +1,7 @@
-From 74d9f92b29c6eccabd54d6f8236aa51d73775c13 Mon Sep 17 00:00:00 2001
+From 328fc79e1b28b444da1ce967511c584dc2af08ba Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 20:33:43 +0800
-Subject: [PATCH 06/11] bcache: fix potential div-zero error of
+Subject: [PATCH 11/16] bcache: fix potential div-zero error of
writeback_rate_i_term_inverse
dc->writeback_rate_i_term_inverse can be set via sysfs interface. It is
@@ -28,7 +28,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 6a1774a6c5fa..0a7fa6fc3660 100644
+index 16cd710f5f8b..d57ab24e9ccd 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -298,7 +298,9 @@ STORE(__cached_dev)
diff --git a/for-next/0007-bcache-fix-potential-div-zero-error-of-writeback_rat.patch b/for-next/0012-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
index d33042b..5d84316 100644
--- a/for-next/0007-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
+++ b/for-next/0012-bcache-fix-potential-div-zero-error-of-writeback_rat.patch
@@ -1,7 +1,7 @@
-From 27fb888f9ecb941064cb6735bae9a2b2608f7dd6 Mon Sep 17 00:00:00 2001
+From 7b40876118a2849d7b4cf820c25855e507a0772e Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 20:48:38 +0800
-Subject: [PATCH 07/11] bcache: fix potential div-zero error of
+Subject: [PATCH 12/16] bcache: fix potential div-zero error of
writeback_rate_p_term_inverse
Current code already uses d_strtoul_nonzero() to convert input string
@@ -26,7 +26,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 0a7fa6fc3660..0a1c90d9c8a6 100644
+index d57ab24e9ccd..a5d292707698 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -301,7 +301,9 @@ STORE(__cached_dev)
diff --git a/for-next/0008-bcache-fix-input-overflow-to-writeback_rate_minimum.patch b/for-next/0013-bcache-fix-input-overflow-to-writeback_rate_minimum.patch
index c70672e..32c0e3f 100644
--- a/for-next/0008-bcache-fix-input-overflow-to-writeback_rate_minimum.patch
+++ b/for-next/0013-bcache-fix-input-overflow-to-writeback_rate_minimum.patch
@@ -1,7 +1,7 @@
-From d6b22ca2dc1c3579f00b672330630969321f0cd1 Mon Sep 17 00:00:00 2001
+From 3a4825c8a0bc5cf017d4d89da0ce96aa43d9496e Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 21:06:41 +0800
-Subject: [PATCH 08/11] bcache: fix input overflow to writeback_rate_minimum
+Subject: [PATCH 13/16] bcache: fix input overflow to writeback_rate_minimum
dc->writeback_rate_minimum is type unsigned integer variable, it is set
via sysfs interface, and converte from input string to unsigned integer
@@ -18,7 +18,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 0a1c90d9c8a6..aacb0e2fc81c 100644
+index a5d292707698..31e41cc3c162 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -304,7 +304,9 @@ STORE(__cached_dev)
diff --git a/for-next/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch b/for-next/0014-bcache-fix-input-overflow-to-journal_delay_ms.patch
index bc33a34..0e9cb41 100644
--- a/for-next/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch
+++ b/for-next/0014-bcache-fix-input-overflow-to-journal_delay_ms.patch
@@ -1,7 +1,7 @@
-From ddf36f1532d71eb39fc59cd4656201ba55061bdf Mon Sep 17 00:00:00 2001
+From 22a749a17e983a601631bde2bfd9c635dead4be4 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 21:30:56 +0800
-Subject: [PATCH 09/11] bcache: fix input overflow to journal_delay_ms
+Subject: [PATCH 14/16] bcache: fix input overflow to journal_delay_ms
c->journal_delay_ms is in type unsigned short, it is set via sysfs
interface and converted by sysfs_strtoul() from input string to
@@ -19,7 +19,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index aacb0e2fc81c..db12d4210a20 100644
+index 31e41cc3c162..032d108d3041 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -809,7 +809,9 @@ STORE(__bch_cache_set)
@@ -31,7 +31,7 @@ index aacb0e2fc81c..db12d4210a20 100644
+ c->journal_delay_ms,
+ 0, USHRT_MAX);
sysfs_strtoul_bool(verify, c->verify);
- sysfs_strtoul_bool(key_merging_disabled,c->key_merging_disabled);
+ sysfs_strtoul_bool(key_merging_disabled, c->key_merging_disabled);
sysfs_strtoul(expensive_debug_checks, c->expensive_debug_checks);
--
2.16.4
diff --git a/for-next/0010-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch b/for-next/0015-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch
index 4637aa1..4c0c055 100644
--- a/for-next/0010-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch
+++ b/for-next/0015-bcache-fix-input-overflow-to-cache-set-io_error_limi.patch
@@ -1,7 +1,7 @@
-From 3a13bb53224bd4b0abeecd72103b05b9822776ac Mon Sep 17 00:00:00 2001
+From 7c78568a57db8175ec9eed44f43dd646713f9d84 Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 22:08:50 +0800
-Subject: [PATCH 10/11] bcache: fix input overflow to cache set io_error_limit
+Subject: [PATCH 15/16] bcache: fix input overflow to cache set io_error_limit
c->error_limit is in type unsigned int, it is set via cache set sysfs
file io_error_limit. Inside the bcache code, input string is converted
@@ -20,7 +20,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index db12d4210a20..9c80e816de5d 100644
+index 032d108d3041..c9888c45cb03 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -789,8 +789,7 @@ STORE(__bch_cache_set)
diff --git a/for-next/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch b/for-next/0016-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
index fbe600f..c390601 100644
--- a/for-next/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
+++ b/for-next/0016-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
@@ -1,7 +1,7 @@
-From 9a9512d0e4913257d3eeb31a1e096ef090371300 Mon Sep 17 00:00:00 2001
+From d7dde6db5e666582e4f248b47706e9b7fdaaa29d Mon Sep 17 00:00:00 2001
From: Coly Li <colyli@suse.de>
Date: Thu, 20 Dec 2018 22:31:25 +0800
-Subject: [PATCH 11/11] bcache: fix input overflow to cache set sysfs file
+Subject: [PATCH 16/16] bcache: fix input overflow to cache set sysfs file
io_error_halflife
Cache set sysfs entry io_error_halflife is used to set c->error_decay.
@@ -19,7 +19,7 @@ Signed-off-by: Coly Li <colyli@suse.de>
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
-index 9c80e816de5d..8721e2f5fff6 100644
+index c9888c45cb03..c0e2dcc94668 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -792,8 +792,14 @@ STORE(__bch_cache_set)