From: Chris Mason Date: Wed, 19 Dec 2007 14:11:48 +0000 (-0500) Subject: Btrfs: Fix nodatacow extent lookup X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~370 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=879c1cfc3104b632dea85d07490f1b55e54275a9;p=karo-tx-linux.git 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: Chris Mason --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 55b2e1426024..1c61c85dc3d8 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -177,7 +177,6 @@ again: 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; }