Files
Eric Dumazet 242124e3e3 net: remove sock_i_uid()
[ Upstream commit c51da3f7a1 ]

Difference between sock_i_uid() and sk_uid() is that
after sock_orphan(), sock_i_uid() returns GLOBAL_ROOT_UID
while sk_uid() returns the last cached sk->sk_uid value.

None of sock_i_uid() callers care about this.

Use sk_uid() which is much faster and inlined.

Note that diag/dump users are calling sock_i_ino() and
can not see the full benefit yet.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Link: https://patch.msgid.link/20250620133001.4090592-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 5d6b58c932 ("net: lockless sock_i_ino()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 19:02:26 +02:00
..
2024-07-12 03:41:32 +01:00
2021-10-13 09:40:46 -07:00
2021-10-13 09:40:46 -07:00
2025-04-15 13:37:14 +02:00
2022-01-27 13:53:27 +00:00
2021-05-18 13:22:09 -07:00
2025-09-09 19:02:26 +02:00
2021-03-29 16:28:50 -07:00