* [PATCH] dcache: replace obsolete simple_strtoul() with kstrtoul()
@ 2014-02-24 11:20 Daeseok Youn
0 siblings, 0 replies; only message in thread
From: Daeseok Youn @ 2014-02-24 11:20 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel, linux-kernel
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
fs/dcache.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/dcache.c b/fs/dcache.c
index 265e0ce..f360620 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3345,10 +3345,9 @@ EXPORT_SYMBOL(d_tmpfile);
static __initdata unsigned long dhash_entries;
static int __init set_dhash_entries(char *str)
{
- if (!str)
- return 0;
- dhash_entries = simple_strtoul(str, &str, 0);
- return 1;
+ if (str && !kstrtoul(str, 0, &dhash_entries))
+ return 1;
+ return 0;
}
__setup("dhash_entries=", set_dhash_entries);
--
1.7.9.5
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-24 11:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24 11:20 [PATCH] dcache: replace obsolete simple_strtoul() with kstrtoul() Daeseok Youn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®