btrfs-progs: subvol: exchange subvol del --commit-after and --commit-each
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Wed, 27 Sep 2017 02:01:09 +0000 (11:01 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 Oct 2017 11:23:26 +0000 (13:23 +0200)
commit75716f6a8fba11ba04aaca550bb3913a58ccb817
tree7ffe387010603b06a4ebf05cf0d37857c9a2da7b
parent2a30baea9eae6eb33788c5727d26b4c5652aeab5
btrfs-progs: subvol: exchange subvol del --commit-after and --commit-each

Current code is reversed in --commit-after and --commit-each operation,
i.e. --commit-after means --commit-each actually. This patch fixes this
and also introduces enum type for more readable code.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Qu Wenruo <quwenruo.btrfs@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-subvolume.c