btrfs: check balance of send_in_progress
authorDavid Sterba <dsterba@suse.cz>
Tue, 17 Dec 2013 14:07:20 +0000 (15:07 +0100)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:04 +0000 (13:20 -0800)
commit66ef7d65c3fc6e5300b9359f1c6537efb23781bb
treeeaba562491ad69b90c542a7e9854c62730ade7d0
parent41ce9970a8a6a362ae8df145f7a03d789e9ef9d2
btrfs: check balance of send_in_progress

Warn if the balance goes below zero, which appears to be unlikely
though. Otherwise cleans up the code a bit.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/send.c