diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-11 17:20:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:57:11 -0400 |
commit | 3dbb95f7895e378514ffefa93cc887fb1bc9df94 (patch) | |
tree | 486dc488c1179eba79a1c3a9e31552b62a03290b /mm/slub.c | |
parent | 6df46865ff8715932e7d42e52cac17e8461758cb (diff) |
mm: replace strict_strtoul() with kstrtoul()
The use 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4420,7 +4420,7 @@ static ssize_t order_store(struct kmem_cache *s, | |||
4420 | unsigned long order; | 4420 | unsigned long order; |
4421 | int err; | 4421 | int err; |
4422 | 4422 | ||
4423 | err = strict_strtoul(buf, 10, &order); | 4423 | err = kstrtoul(buf, 10, &order); |
4424 | if (err) | 4424 | if (err) |
4425 | return err; | 4425 | return err; |
4426 | 4426 | ||
@@ -4448,7 +4448,7 @@ static ssize_t min_partial_store(struct kmem_cache *s, const char *buf, | |||
4448 | unsigned long min; | 4448 | unsigned long min; |
4449 | int err; | 4449 | int err; |
4450 | 4450 | ||
4451 | err = strict_strtoul(buf, 10, &min); | 4451 | err = kstrtoul(buf, 10, &min); |
4452 | if (err) | 4452 | if (err) |
4453 | return err; | 4453 | return err; |
4454 | 4454 | ||
@@ -4468,7 +4468,7 @@ static ssize_t cpu_partial_store(struct kmem_cache *s, const char *buf, | |||
4468 | unsigned long objects; | 4468 | unsigned long objects; |
4469 | int err; | 4469 | int err; |
4470 | 4470 | ||
4471 | err = strict_strtoul(buf, 10, &objects); | 4471 | err = kstrtoul(buf, 10, &objects); |
4472 | if (err) | 4472 | if (err) |
4473 | return err; | 4473 | return err; |
4474 | if (objects && !kmem_cache_has_cpu_partial(s)) | 4474 | if (objects && !kmem_cache_has_cpu_partial(s)) |
@@ -4784,7 +4784,7 @@ static ssize_t remote_node_defrag_ratio_store(struct kmem_cache *s, | |||
4784 | unsigned long ratio; | 4784 | unsigned long ratio; |
4785 | int err; | 4785 | int err; |
4786 | 4786 | ||
4787 | err = strict_strtoul(buf, 10, &ratio); | 4787 | err = kstrtoul(buf, 10, &ratio); |
4788 | if (err) | 4788 | if (err) |
4789 | return err; | 4789 | return err; |
4790 | 4790 | ||