diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-02-28 05:59:11 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-03-15 11:00:14 -0400 |
commit | 91748467a5c5884e44ad5cf58630c0c28474f1f6 (patch) | |
tree | 593f2449e069e34fe96ba0e59efa8bf71242ad46 /fs/btrfs/ioctl.c | |
parent | 1406e4327be3a533a2b18582f715ce2cfbcf6804 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9213d39d36cc..363e209679b6 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -776,7 +776,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root, | |||
776 | mod = 1; | 776 | mod = 1; |
777 | sizestr++; | 777 | sizestr++; |
778 | } | 778 | } |
779 | new_size = btrfs_parse_size(sizestr); | 779 | new_size = memparse(sizestr, NULL); |
780 | if (new_size == 0) { | 780 | if (new_size == 0) { |
781 | ret = -EINVAL; | 781 | ret = -EINVAL; |
782 | goto out_unlock; | 782 | goto out_unlock; |