OSDN Git Service

tracing/user_events: Rename link fields for clarity
authorBeau Belgrave <beaub@linux.microsoft.com>
Fri, 19 May 2023 23:07:40 +0000 (16:07 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 24 May 2023 01:08:33 +0000 (21:08 -0400)
commitdcbd1ac2668b5fa02069ea96d581ca3f70a7543c
tree9fad5f8697c32605efe965a6e814ad8e1b094349
parentaaecdaf922835ed9a8ce56cdd9a8d40fe630257a
tracing/user_events: Rename link fields for clarity

Currently most list_head fields of various structs within user_events
are simply named link. This causes folks to keep additional context in
their head when working with the code, which can be confusing.

Instead of using link, describe what the actual link is, for example:
list_del_rcu(&mm->link);

Changes into:
list_del_rcu(&mm->mms_link);

The reader now is given a hint the link is to the mms global list
instead of having to remember or spot check within the code.

Link: https://lkml.kernel.org/r/20230519230741.669-4-beaub@linux.microsoft.com
Link: https://lore.kernel.org/linux-trace-kernel/CAHk-=wicngggxVpbnrYHjRTwGE0WYscPRM+L2HO2BF8ia1EXgQ@mail.gmail.com/
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/user_events.h
kernel/trace/trace_events_user.c