forked from Mirrors/btrfs-progs
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
parent
09827a8a33
commit
db84e5908d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue