btrfs: filter invalid arg for btrfs resize
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 31 Mar 2014 10:03:25 +0000 (18:03 +0800)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 16:08:45 +0000 (09:08 -0700)
Originally following cmds will work:
# btrfs fi resize -10A  <mnt>
# btrfs fi resize -10Gaha <mnt>
Filter the arg by checking the return pointer of memparse.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c

Simple merge