mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
Btrfs: don't BUG_ON() if we get an error walking backrefs
We can just return false for this so we stop doing the snapshot aware defrag stuff. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
54563d41a5
commit
4724b106b9
1 changed files with 2 additions and 1 deletions
|
@ -2129,7 +2129,8 @@ static noinline bool record_extent_backrefs(struct btrfs_path *path,
|
|||
old->extent_offset, fs_info,
|
||||
path, record_one_backref,
|
||||
old);
|
||||
BUG_ON(ret < 0 && ret != -ENOENT);
|
||||
if (ret < 0 && ret != -ENOENT)
|
||||
return false;
|
||||
|
||||
/* no backref to be processed for this extent */
|
||||
if (!old->count) {
|
||||
|
|
Loading…
Reference in a new issue