btrfs: use memparse

Use memparse() instead of its own private implementation.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: linux-btrfs@vger.kernel.org
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Akinobu Mita
2010-02-28 10:59:11 +00:00
committed by Chris Mason
parent 1406e4327b
commit 91748467a5
3 changed files with 4 additions and 30 deletions

View File

@@ -776,7 +776,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
mod = 1;
sizestr++;
}
new_size = btrfs_parse_size(sizestr);
new_size = memparse(sizestr, NULL);
if (new_size == 0) {
ret = -EINVAL;
goto out_unlock;