]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs/proc: calculate /proc/* and /proc/*/task/* nlink at init time
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 13 Dec 2016 00:45:32 +0000 (16:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:09 +0000 (18:55 -0800)
commit1270dd8d994039b677d0504ba7260873d608bf75
treeced0d62305e9cfa38afb22f6eed06e59e499763d
parentbac5f5d56bbcb0ef7d3a926dd28b5f1db09117b7
fs/proc: calculate /proc/* and /proc/*/task/* nlink at init time

Runtime nlink calculation works but meh.  I don't know how to do it at
compile time, but I know how to do it at init time.

Shift "2+" part into init time as a bonus.

Link: http://lkml.kernel.org/r/20161122195549.GB29812@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
fs/proc/internal.h
fs/proc/root.c