ocfs2: replace simple_strtol with kstrtol
authorSu Hui <suhui@nfschina.com>
Tue, 27 May 2025 09:23:34 +0000 (17:23 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:57:49 +0000 (22:57 -0700)
commit85df0d505ed64d72c86822733f648074d1ae2bca
tree8bb32ae09b873317c397128e39aa58d34a42fbd2
parent50b4233a22b1ee9ccd0e847597de66ce21329ddb
ocfs2: replace simple_strtol with kstrtol

kstrtol() is better because simple_strtol() ignores overflow.  And using
kstrtol() is more concise.

Link: https://lkml.kernel.org/r/20250527092333.1917391-1-suhui@nfschina.com
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/stack_user.c