Re: [PATCH 3/5] btrfs-progs: qgroups: use parse_size instead of open coding it

2019-08-13 Thread Qu Wenruo
On 2019/8/14 上午9:04, Jeff Mahoney wrote: > The only difference between parse_limit and parse_size is that > parse_limit accepts "none" as a valid input. That's easy enough > to handle as a special case and lets us drop the duplicate code. > > Signed-off-by: Jeff Mahoney Reviewed-by: Qu Wenruo

[PATCH 3/5] btrfs-progs: qgroups: use parse_size instead of open coding it

2019-08-13 Thread Jeff Mahoney
The only difference between parse_limit and parse_size is that parse_limit accepts "none" as a valid input. That's easy enough to handle as a special case and lets us drop the duplicate code. Signed-off-by: Jeff Mahoney --- cmds/qgroup.c | 58