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>
This commit is contained in:
Родитель
190662b212
Коммит
879c1cfc31
|
@ -177,7 +177,6 @@ again:
|
||||||
if (bytenr == 0)
|
if (bytenr == 0)
|
||||||
goto not_found;
|
goto not_found;
|
||||||
|
|
||||||
bytenr += btrfs_file_extent_offset(leaf, item);
|
|
||||||
if (btrfs_count_snapshots_in_path(root, path, bytenr) != 1) {
|
if (btrfs_count_snapshots_in_path(root, path, bytenr) != 1) {
|
||||||
goto not_found;
|
goto not_found;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче