]> git.baikalelectronics.ru Git - kernel.git/commit
proc: switch struct proc_dir_entry::count to refcount
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 10 Apr 2018 23:32:14 +0000 (16:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commitb377377e055de632591a971cb7012aaa309ed9bc
tree181ee45b29c4a312ea23bf88b45a8e65890fc29e
parentf8a3b85e446343ecbebd787405c7b61461a370c8
proc: switch struct proc_dir_entry::count to refcount

->count is honest reference count unlike ->in_use.

Link: http://lkml.kernel.org/r/20180313174550.GA4332@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/generic.c
fs/proc/internal.h
fs/proc/root.c