]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Make inline name size calculation automatic
authorDavid Howells <dhowells@redhat.com>
Wed, 13 Jun 2018 18:43:19 +0000 (19:43 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 Jun 2018 04:48:57 +0000 (00:48 -0400)
commit42119ad56b60fb3493923556e5b5eba68b4ebb51
tree1b59ef017c85f158edf696564fe441fa2356ca3e
parentd44b7e475ec09925fc8af6f6d260477f2c235734
proc: Make inline name size calculation automatic

Make calculation of the size of the inline name in struct proc_dir_entry
automatic, rather than having to manually encode the numbers and failing to
allow for lockdep.

Require a minimum inline name size of 33+1 to allow for names that look
like two hex numbers with a dash between.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/generic.c
fs/proc/inode.c
fs/proc/internal.h
fs/proc/root.c