]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add missing error check in incremental send
authorFilipe David Borba Manana <fdmanana@gmail.com>
Thu, 30 Jan 2014 13:27:12 +0000 (13:27 +0000)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:40 +0000 (15:15 -0400)
commit3c9401936c0ba03fe7fd328d04ffc28f20d86ae9
treec8723eec6df985996ca5fbcba168adc2ed350b71
parent27daa39a102ad380e424525cbc541c6e188d15eb
Btrfs: add missing error check in incremental send

Function wait_for_parent_move() returns negative value if an error
happened, 0 if we don't need to wait for the parent's move, and
1 if the wait is needed.
Before this change an error return value was being treated like the
return value 1, which was not correct.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/send.c