btrfs-progs: Simplify all-subvolumn-clean condition for wait_for_subvolume_cleaning
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 26 Aug 2015 14:03:39 +0000 (22:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 1 Sep 2015 12:02:49 +0000 (14:02 +0200)
commit07cc891d1d9819d5cf0628af555e7727d289cf7b
tree5cc04c30289275fc03b4ba6fe325445b52f184dc
parent601c5e1b234fa13bbbed89bce3201f81340ff15d
btrfs-progs: Simplify all-subvolumn-clean condition for wait_for_subvolume_cleaning

Instead of using a dirty-subvolumn-counter in old code, this patch
turn to use a simple and direct way:
  If (not dirty-subvolumn found in current loop) {
      return all_clean;
  }

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-subvolume.c