Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4724b106 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 54563d41
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2129,7 +2129,8 @@ static noinline bool record_extent_backrefs(struct btrfs_path *path,
						  old->extent_offset, fs_info,
						  old->extent_offset, fs_info,
						  path, record_one_backref,
						  path, record_one_backref,
						  old);
						  old);
		BUG_ON(ret < 0 && ret != -ENOENT);
		if (ret < 0 && ret != -ENOENT)
			return false;


		/* no backref to be processed for this extent */
		/* no backref to be processed for this extent */
		if (!old->count) {
		if (!old->count) {