]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
proc: add tgid_iter.pid_ns member
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 22 Apr 2026 19:17:44 +0000 (22:17 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:24:38 +0000 (21:24 -0700)
commit9794de4500e7dc8686f4ae5f2d11d76e43f299c5
tree94d24c0102aab89286ca9102add3b810f9e0608f
parentd60ec36cab338dfe2ae40d73e9c8d6c4af70d2b8
proc: add tgid_iter.pid_ns member

next_tgid() accepts pid namespace as an argument, but it never changes
during readdir (which would be unthinkable thing to do anyway).

Move it inside iterator type and hide from direct usage.

Link: https://lore.kernel.org/20260422191745.435556-1-adobriyan@gmail.com
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/base.c