btrfs-progs: subvol sync: fix reversed condition

In my local change to 07cc891d1d
("btrfs-progs: Simplify all-subvolumn-clean condition for
wait_for_subvolume_cleaning") that reversed the meaning of the variable
dirty -> clean, I made a mistake and broke 'subvol sync' that will not
wait as expected and ends prematurely. Zhao Lei's original patch worked.

CC: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2015-10-06 11:32:16 +02:00
parent 4bdc710542
commit d3be5b65da
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ static int wait_for_subvolume_cleaning(int fd, int count, u64 *ids,
clean = 0;
}
}
if (clean == 0)
if (clean)
break;
sleep(sleep_interval);
}