summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-09-03 18:53:21 +0300
committerDavid Sterba <dsterba@suse.com>2025-09-15 06:25:31 +0300
commitb62fd63ade7cb573b114972ef8f9fa505be8d74a (patch)
treecec6c3caaa29bd6e62092ef46fdf052040e2a817 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent3d1267475b94b3df7a61e4ea6788c7c5d9e473c4 (diff)
downloadlinux-b62fd63ade7cb573b114972ef8f9fa505be8d74a.tar.xz
btrfs: fix invalid extref key setup when replaying dentry
The offset for an extref item's key is not the object ID of the parent dir, otherwise we would not need the extref item and would use plain ref items. Instead the offset is the result of a hash computation that uses the object ID of the parent dir and the name associated to the entry. So fix this by setting the key offset at replay_one_name() to be the result of calling btrfs_extref_hash(). Fixes: 725af92a6251 ("btrfs: Open-code name_in_log_ref in replay_one_name") Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions