Re: [PATCH v2] Btrfs: bail out on error during replay_dir_deletes

2018-04-05 Thread David Sterba
On Tue, Apr 03, 2018 at 01:59:48AM +0800, Liu Bo wrote: > 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 t

[PATCH v2] Btrfs: bail out on error during replay_dir_deletes

2018-04-02 Thread Liu Bo
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