commit | b98def7ca6e152ee55e36863dddf6f41f12d1dc6 | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.liu@linux.alibaba.com> | Tue Apr 03 01:59:48 2018 +0800 |
committer | David Sterba <dsterba@suse.com> | Thu Apr 05 19:22:26 2018 +0200 |
tree | a49615ca3fc4514942e4d81b4246622d36f6b28d | |
parent | 80c0b4210a963e31529e15bf90519708ec947596 [diff] |
Btrfs: bail out on error during replay_dir_deletes If errors were returned by btrfs_next_leaf(), replay_dir_deletes needs to bail out, otherwise @ret would be forced to be 0 after 'break;' and the caller won't be aware of it. Fixes: e02119d5a7b4 ("Btrfs: Add a write ahead tree log to optimize synchronous operations") Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com> Signed-off-by: David Sterba <dsterba@suse.com>