aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-12-19 09:11:48 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commit879c1cfc3104b632dea85d07490f1b55e54275a9 (patch)
treeaeb8d8bdff1e5d77042216213e247b7fdd6c84d6
parent190662b2128dd648749e197f5563e9f6bbb5e05c (diff)
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 <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 55b2e142602..1c61c85dc3d 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;
}