Skip to content

Commit

Permalink
Btrfs: Fix nodatacow extent lookup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 190662b commit 879c1cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 879c1cf

Please sign in to comment.