mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-30 15:07:56 +00:00
Hash in the owner and offset for file extent backref keys
This commit is contained in:
parent
6f30791b51
commit
633ddb9a90
@ -386,13 +386,12 @@ static u64 hash_extent_ref(u64 root_objectid, u64 ref_generation,
|
|||||||
high_crc = crc32c(high_crc, &lenum, sizeof(lenum));
|
high_crc = crc32c(high_crc, &lenum, sizeof(lenum));
|
||||||
lenum = cpu_to_le64(ref_generation);
|
lenum = cpu_to_le64(ref_generation);
|
||||||
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
||||||
|
if (owner >= BTRFS_FIRST_FREE_OBJECTID) {
|
||||||
#if 0
|
lenum = cpu_to_le64(owner);
|
||||||
lenum = cpu_to_le64(owner);
|
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
||||||
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
lenum = cpu_to_le64(owner_offset);
|
||||||
lenum = cpu_to_le64(owner_offset);
|
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
||||||
low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
}
|
||||||
#endif
|
|
||||||
return ((u64)high_crc << 32) | (u64)low_crc;
|
return ((u64)high_crc << 32) | (u64)low_crc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user