]> git.baikalelectronics.ru Git - kernel.git/commit
fs/proc: use __ro_after_init
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Feb 2018 23:37:24 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:43 +0000 (18:32 -0800)
commit123ec7bc408c0ffc1476a7eee695162c1c65abe9
tree6aa5fba9d4240e0a171eb2ac9bfc9d64aae7aa2e
parentbeded770870e06a1a4c5bb171d77a9ce983b2992
fs/proc: use __ro_after_init

/proc/self inode numbers, value of proc_inode_cache and st_nlink of
/proc/$TGID are fixed constants.

Link: http://lkml.kernel.org/r/20180103184707.GA31849@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.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/inode.c
fs/proc/self.c
fs/proc/thread_self.c