kernfs: Clarify lockdep name for kn->count
authorWaiman Long <longman@redhat.com>
Thu, 17 Aug 2017 15:49:56 +0000 (11:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:50:15 +0000 (16:50 +0200)
commit39bf04db6b2b13eeb2aa565930034dc9d4198d93
treee7b5981de4a835d2abff37452dc389489bc74f6e
parentb5f0dc7b4f30d08cb56c3a14f555083846ebd2fc
kernfs: Clarify lockdep name for kn->count

The reference count in kernfs_node structure is treated like a rwsem by
using lockdep instrumentation code. The lockdep name, however, is still
"s_active" which is carried over from the old sysfs code. As s_active
is no longer the variable name, its use may confuse users on where the
lock is when it is reported by lockdep. So it is changed to "kn->count"
which is how this variable is normally referenced in kernfs code.

Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c