summaryrefslogtreecommitdiffstats
path: root/fs/notify/notification.c
diff options
context:
space:
mode:
authorMatthew Bobrowski <repnop@google.com>2021-08-08 07:25:32 +0200
committerJan Kara <jack@suse.cz>2021-08-10 12:53:09 +0200
commitd3424c9bac893bd06f38a20474cd622881d384ca (patch)
tree5011f7a8298ec90f9cc6de69650106101bba4dd6 /fs/notify/notification.c
parentkernel/pid.c: implement additional checks upon pidfd_create() parameters (diff)
downloadlinux-d3424c9bac893bd06f38a20474cd622881d384ca.tar.xz
linux-d3424c9bac893bd06f38a20474cd622881d384ca.zip
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>
Diffstat (limited to 'fs/notify/notification.c')
0 files changed, 0 insertions, 0 deletions