mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
btrfs: replace simple_strtoull() with kstrtoull()
use the newer and more pleasant kstrtoull() to replace simple_strtoull(), because simple_strtoull() is marked for obsoletion. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
298658414a
commit
58dfae6365
@ -1503,11 +1503,12 @@ static noinline int btrfs_ioctl_resize(struct file *file,
|
||||
sizestr = vol_args->name;
|
||||
devstr = strchr(sizestr, ':');
|
||||
if (devstr) {
|
||||
char *end;
|
||||
sizestr = devstr + 1;
|
||||
*devstr = '\0';
|
||||
devstr = vol_args->name;
|
||||
devid = simple_strtoull(devstr, &end, 10);
|
||||
ret = kstrtoull(devstr, 10, &devid);
|
||||
if (ret)
|
||||
goto out_free;
|
||||
if (!devid) {
|
||||
ret = -EINVAL;
|
||||
goto out_free;
|
||||
|
Loading…
Reference in New Issue
Block a user