android_kernel_motorola_sm6375/include/trace
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tejun Heo 626fc04169
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: I4b33899e4953febd5553772c7969fc4cb2ca750a
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>
2025-12-23 13:35:40 -08:00
..
events BACKPORT: kernfs: convert kernfs_node->id from union kernfs_node_id to u64 2025-12-23 13:35:40 -08:00
hooks Merge android11-5.4.86+ (5d7dfa3) into msm-5.4 2021-04-22 10:27:30 +05:30
bpf_probe.h
define_trace.h
perf.h
syscall.h
trace_events.h