Re: [PATCH 2/8] btrfs-progs: qgroups: fix misleading index check

2018-03-07 Thread Nikolay Borisov
On 2.03.2018 20:46, je...@suse.com wrote: > From: Jeff Mahoney > > In print_single_qgroup_table we check the loop index against > BTRFS_QGROUP_CHILD, but what we really mean is "last column." Since > we have an enum value to indicate the last value, use that instead > of

[PATCH 2/8] btrfs-progs: qgroups: fix misleading index check

2018-03-02 Thread jeffm
From: Jeff Mahoney In print_single_qgroup_table we check the loop index against BTRFS_QGROUP_CHILD, but what we really mean is "last column." Since we have an enum value to indicate the last value, use that instead of assuming that BTRFS_QGROUP_CHILD is always last.

[PATCH 2/8] btrfs-progs: qgroups: fix misleading index check

2018-03-02 Thread jeffm
From: Jeff Mahoney In print_single_qgroup_table we check the loop index against BTRFS_QGROUP_CHILD, but what we really mean is "last column." Since we have an enum value to indicate the last value, use that instead of assuming that BTRFS_QGROUP_CHILD is always last.