]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: bail out on error during replay_dir_deletes
authorLiu Bo <bo.liu@linux.alibaba.com>
Mon, 2 Apr 2018 17:59:48 +0000 (01:59 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 5 Apr 2018 17:22:26 +0000 (19:22 +0200)
commitab2332d94a6f54d8c9836046daea59de3d2a2dc0
treea49615ca3fc4514942e4d81b4246622d36f6b28d
parentd333ebe6b116290510d669c8905af640976da778
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>
fs/btrfs/tree-log.c