btrfs-progs: mkfs: traverse_directory: Reset error code on continue

In case add_inode_items returned -EEXIST, traverse_directory would
handle the condition and still continue under certain circumstances, but
it would not reset the error code, leading to spurious failure later.
This patch fixes that.

Pull-request: #124
Author: Matthias Benkard <matthias.benkard@egym.de>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Matthias Benkard 2018-04-25 16:34:54 +02:00 committed by David Sterba
parent 09827a8a33
commit db84e5908d
1 changed files with 1 additions and 0 deletions

View File

@ -553,6 +553,7 @@ static int traverse_directory(struct btrfs_trans_handle *trans,
(unsigned long)st.st_nlink);
goto fail;
}
ret = 0;
continue;
}
if (ret) {