Skip to content

Commit 0f605db

Browse files
Waiman-Longgregkh
authored andcommitted
kernfs: Change kernfs_node lockdep name to "kn->active"
The kernfs_node lockdep tracking is being done on kn->active, the active reference count. The other reference count (kn->count) is not tracked by lockdep. So change the lockdep name to reflect what it is tracking. Signed-off-by: Waiman Long <longman@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20200402171056.27871-1-longman@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5562326 commit 0f605db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/kernfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
10101010

10111011
#ifdef CONFIG_DEBUG_LOCK_ALLOC
10121012
if (key) {
1013-
lockdep_init_map(&kn->dep_map, "kn->count", key, 0);
1013+
lockdep_init_map(&kn->dep_map, "kn->active", key, 0);
10141014
kn->flags |= KERNFS_LOCKDEP;
10151015
}
10161016
#endif

0 commit comments

Comments
 (0)