for-next: update patches
diff --git a/for-next/sysfs-fix/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch b/for-next/sysfs-fix/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
index 7963759..53ceb4c 100644
--- a/for-next/sysfs-fix/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
+++ b/for-next/sysfs-fix/0003-bcache-add-sysfs_strtoul_bool-for-setting-bit-field-.patch
@@ -5,8 +5,8 @@
variables
When setting bool values via sysfs interface, e.g. writeback_metadata,
-if writting 1 into writeback_metadata file, dc->writeback_metadata is
-set to 1, but if writting 2 into the file, dc->writeback_metadata is
+if writing 1 into writeback_metadata file, dc->writeback_metadata is
+set to 1, but if writing 2 into the file, dc->writeback_metadata is
0. This is misleading, a better result should be 1 for all non-zero
input value.
diff --git a/for-next/sysfs-fix/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch b/for-next/sysfs-fix/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
index 60d8fd7..092deaf 100644
--- a/for-next/sysfs-fix/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
+++ b/for-next/sysfs-fix/0004-bcache-use-sysfs_strtoul_bool-to-set-bit-field-varia.patch
@@ -56,7 +56,7 @@
- sysfs_strtoul(verify, c->verify);
- sysfs_strtoul(key_merging_disabled, c->key_merging_disabled);
+ 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);
- sysfs_strtoul(gc_always_rewrite, c->gc_always_rewrite);
- sysfs_strtoul(btree_shrinker_disabled, c->shrinker_disabled);
diff --git a/for-next/sysfs-fix/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch b/for-next/sysfs-fix/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch
index 5a0e9e3..bc33a34 100644
--- a/for-next/sysfs-fix/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch
+++ b/for-next/sysfs-fix/0009-bcache-fix-input-overflow-to-journal_delay_ms.patch
@@ -6,7 +6,7 @@
c->journal_delay_ms is in type unsigned short, it is set via sysfs
interface and converted by sysfs_strtoul() from input string to
unsigned short value. Therefore overflow to unsigned short might be
-happen when the converted value exceed USHRT_MAX. e.g. writting
+happen when the converted value exceed USHRT_MAX. e.g. writing
65536 into sysfs file journal_delay_ms, c->journal_delay_ms is set to
0.
diff --git a/for-next/sysfs-fix/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch b/for-next/sysfs-fix/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
index d2ad9aa..fbe600f 100644
--- a/for-next/sysfs-fix/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
+++ b/for-next/sysfs-fix/0011-bcache-fix-input-overflow-to-cache-set-sysfs-file-io.patch
@@ -5,7 +5,7 @@
io_error_halflife
Cache set sysfs entry io_error_halflife is used to set c->error_decay.
-c->error_decay is in type unsinged int, and it is converted by
+c->error_decay is in type unsigned int, and it is converted by
strtoul_or_return(), therefore overflow to c->error_decay is possible
for a large input value.
@@ -29,7 +29,7 @@
- if (attr == &sysfs_io_error_halflife)
- c->error_decay = strtoul_or_return(buf) / 88;
+ if (attr == &sysfs_io_error_halflife) {
-+ long int v;
++ long v;
+
+ v = strtoul_safe_clamp(buf, v, 0, UINT_MAX);
+ if (v < 0)