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

2018-04-01 Thread Nikolay Borisov
On 31.03.2018 01:11, 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. > > Signed-off-by: Liu Bo Reviewed-by: Nikolay Borisov This is also a long-s

[PATCH] Btrfs: bail out on error during replay_dir_deletes

2018-03-30 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. Signed-off-by: Liu Bo --- fs/btrfs/tree-log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/b