diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-06-01 07:15:16 (GMT) |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-13 22:10:26 (GMT) |
commit | b29bebd66dbd492105668ec3515a5ffb0b25e4c1 (patch) | |
tree | 5cbb8054acd42c242ffd34413e293faab54a1d3f /drivers/md/raid5.c | |
parent | 90f5f7ad4f38d67626b0c220a0ac390603e0bded (diff) | |
download | linux-b29bebd66dbd492105668ec3515a5ffb0b25e4c1.tar.xz |
md: replace strict_strto*() with kstrto*()
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 05e4a10..cd9aab9 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -4924,7 +4924,7 @@ raid5_store_stripe_cache_size(struct mddev *mddev, const char *page, size_t len) if (!conf) return -ENODEV; - if (strict_strtoul(page, 10, &new)) + if (kstrtoul(page, 10, &new)) return -EINVAL; err = raid5_set_cache_size(mddev, new); if (err) @@ -4957,7 +4957,7 @@ raid5_store_preread_threshold(struct mddev *mddev, const char *page, size_t len) if (!conf) return -ENODEV; - if (strict_strtoul(page, 10, &new)) + if (kstrtoul(page, 10, &new)) return -EINVAL; if (new > conf->max_nr_stripes) return -EINVAL; |