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

Commit 879c1cfc authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Fix nodatacow extent lookup



Yan Zheng noticed the offset into the extent was incorrectly being added to the
extent start before trying to find it in the extent allocation tree.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 190662b2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -177,7 +177,6 @@ static int run_delalloc_nocow(struct inode *inode, u64 start, u64 end)
		if (bytenr == 0)
			goto not_found;

		bytenr += btrfs_file_extent_offset(leaf, item);
		if (btrfs_count_snapshots_in_path(root, path, bytenr) != 1) {
			goto not_found;
		}