diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-12-19 09:11:48 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 879c1cfc3104b632dea85d07490f1b55e54275a9 (patch) | |
tree | aeb8d8bdff1e5d77042216213e247b7fdd6c84d6 /fs | |
parent | 190662b2128dd648749e197f5563e9f6bbb5e05c (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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
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: | |||
177 | if (bytenr == 0) | 177 | if (bytenr == 0) |
178 | goto not_found; | 178 | goto not_found; |
179 | 179 | ||
180 | bytenr += btrfs_file_extent_offset(leaf, item); | ||
181 | if (btrfs_count_snapshots_in_path(root, path, bytenr) != 1) { | 180 | if (btrfs_count_snapshots_in_path(root, path, bytenr) != 1) { |
182 | goto not_found; | 181 | goto not_found; |
183 | } | 182 | } |