diff options
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 10af6a0e0865..24d654ce7a06 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c | |||
@@ -3322,8 +3322,11 @@ static int find_data_references(struct reloc_control *rc, | |||
3322 | } | 3322 | } |
3323 | 3323 | ||
3324 | key.objectid = ref_objectid; | 3324 | key.objectid = ref_objectid; |
3325 | key.offset = ref_offset; | ||
3326 | key.type = BTRFS_EXTENT_DATA_KEY; | 3325 | key.type = BTRFS_EXTENT_DATA_KEY; |
3326 | if (ref_offset > ((u64)-1 << 32)) | ||
3327 | key.offset = 0; | ||
3328 | else | ||
3329 | key.offset = ref_offset; | ||
3327 | 3330 | ||
3328 | path->search_commit_root = 1; | 3331 | path->search_commit_root = 1; |
3329 | path->skip_locking = 1; | 3332 | path->skip_locking = 1; |