Tejun Heo
41b248b887
BACKPORT: kernfs: convert kernfs_node->id from union kernfs_node_id to u64
...
kernfs_node->id is currently a union kernfs_node_id which represents
either a 32bit (ino, gen) pair or u64 value. I can't see much value
in the usage of the union - all that's needed is a 64bit ID which the
current code is already limited to. Using a union makes the code
unnecessarily complicated and prevents using 64bit ino without adding
practical benefits.
This patch drops union kernfs_node_id and makes kernfs_node->id a u64.
ino is stored in the lower 32bits and gen upper. Accessors -
kernfs[_id]_ino() and kernfs[_id]_gen() - are added to retrieve the
ino and gen. This simplifies ID handling less cumbersome and will
allow using 64bit inos on supported archs.
This patch doesn't make any functional changes.
Change-Id: I289fc21fdfd22b7c7cae73626665b0cb100a0c5f
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 18:02:33 +07:00
..
arraymap.c
UPSTREAM: bpf: Simplify __bpf_arch_text_poke poke type handling
2026-05-15 17:59:17 +07:00
bpf_lru_list.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
bpf_lru_list.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
bpf_struct_ops.c
UPSTREAM: bpf: Move btf_resolve_size into __btf_resolve_size
2026-05-15 17:59:29 +07:00
bpf_struct_ops_types.h
UPSTREAM: bpf: tcp: Support tcp_congestion_ops in bpf
2026-05-15 17:59:24 +07:00
btf.c
BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos
2026-05-15 17:59:31 +07:00
cgroup.c
BACKPORT: bpf: Support replacing cgroup-bpf program in MULTI mode
2026-05-15 17:59:23 +07:00
core.c
UPSTREAM: bpf: Remove unnecessary assertion on fp_old
2026-05-15 17:59:21 +07:00
cpumap.c
UPSTREAM: xdp: Make cpumap flush_list common for all map instances
2026-05-15 17:59:22 +07:00
devmap.c
UPSTREAM: xdp: Make devmap flush_list common for all map instances
2026-05-15 17:59:22 +07:00
disasm.c
BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295
2026-05-15 17:57:45 +07:00
disasm.h
BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295
2026-05-15 17:57:45 +07:00
dispatcher.c
UPSTREAM: bpf: Introduce BPF dispatcher
2026-05-15 17:59:20 +07:00
hashtab.c
UPSTREAM: Revert "bpf: Add map and need_defer parameters to .map_fd_put_ptr()"
2026-05-15 17:58:16 +07:00
helpers.c
BACKPORT: kernfs: convert kernfs_node->id from union kernfs_node_id to u64
2026-05-15 18:02:33 +07:00
inode.c
BACKPORT: bpf: Convert bpf_prog refcnt to atomic64_t
2026-05-15 17:59:15 +07:00
local_storage.c
BACKPORT: kernfs: convert kernfs_node->id from union kernfs_node_id to u64
2026-05-15 18:02:33 +07:00
lpm_trie.c
UPSTREAM: bpf: Fix exact match conditions in trie_get_next_key()
2026-05-15 17:58:17 +07:00
Makefile
BACKPORT: bpf: Implement BPF ring buffer and verifier support for it
2026-05-15 17:59:25 +07:00
map_in_map.c
UPSTREAM: bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS
2026-05-15 17:59:24 +07:00
map_in_map.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
offload.c
BACKPORT: bpf: offload: add priv field for drivers
2026-05-15 17:57:32 +07:00
percpu_freelist.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
percpu_freelist.h
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
queue_stack_maps.c
UPSTREAM: bpf: Avoid deadlock when using queue and stack maps from NMI
2026-05-15 17:58:15 +07:00
reuseport_array.c
UPSTREAM: bpf: move memory size checks to bpf_map_charge_init()
2026-05-15 17:57:45 +07:00
ringbuf.c
UPSTREAM: bpf: Fix overrunning reservations in ringbuf
2026-05-15 17:59:34 +07:00
stackmap.c
UPSTREAM: irq_work: Convert flags to atomic_t
2026-05-15 17:59:10 +07:00
syscall.c
BACKPORT: bpf: Add BPF_CGROUP_INET_SOCK_RELEASE hook
2026-05-15 17:59:25 +07:00
sysfs_btf.c
UPSTREAM: bpf: Fix sysfs export of empty BTF section
2026-05-15 17:58:12 +07:00
tnum.c
BACKPORT: bpf: Fix 32 bit src register truncation on div/mod
2026-05-15 17:58:54 +07:00
trampoline.c
UPSTREAM: bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS
2026-05-15 17:59:24 +07:00
verifier.c
UPSTREAM: bpf: Fix ringbuf helper function compatibility
2026-05-15 17:59:34 +07:00
xskmap.c
UPSTREAM: xsk: Make xskmap flush_list common for all map instances
2026-05-15 17:59:22 +07:00