]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: minor cosmetic adjustments to fid labels
authorMatthew Bobrowski <repnop@google.com>
Sun, 8 Aug 2021 05:25:32 +0000 (15:25 +1000)
committerJan Kara <jack@suse.cz>
Tue, 10 Aug 2021 10:53:09 +0000 (12:53 +0200)
commit44c99c3b8075c37156107cccf87788cd0ef1093c
tree5011f7a8298ec90f9cc6de69650106101bba4dd6
parent4a57c3b57f7ac4d88319a6cc53b77359f6c14119
fanotify: minor cosmetic adjustments to fid labels

With the idea to support additional info record types in the future
i.e. fanotify_event_info_pidfd, it's a good idea to rename some of the
labels assigned to some of the existing fid related functions,
parameters, etc which more accurately represent the intent behind
their usage.

For example, copy_info_to_user() was defined with a generic function
label, which arguably reads as being supportive of different info
record types, however the parameter list for this function is
explicitly tailored towards the creation and copying of the
fanotify_event_info_fid records. This same point applies to the macro
defined as FANOTIFY_INFO_HDR_LEN.

With fanotify_event_info_len(), we change the parameter label so that
the function implies that it can be extended to calculate the length
for additional info record types.

Link: https://lore.kernel.org/r/7c3ec33f3c718dac40764305d4d494d858f59c51.1628398044.git.repnop@google.com
Signed-off-by: Matthew Bobrowski <repnop@google.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c