summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2020-07-16 11:42:17 +0300
committerJan Kara <jack@suse.cz>2020-07-27 21:23:37 +0200
commitf454fa610a69b93e7ed4de739e736f988d95c2d2 (patch)
tree699289ff1b9413920896a3a7fd76f34c183a8528 /Kconfig
parent6ba8d7107f27c1bde60a80bc5def027979af3e8e (diff)
downloadlinux-stable-f454fa610a69b93e7ed4de739e736f988d95c2d2.tar.gz
linux-stable-f454fa610a69b93e7ed4de739e736f988d95c2d2.tar.bz2
linux-stable-f454fa610a69b93e7ed4de739e736f988d95c2d2.zip
fanotify: use struct fanotify_info to parcel the variable size buffer
An fanotify event name is always recorded relative to a dir fh. Encapsulate the name_len member of fanotify_name_event in a new struct fanotify_info, which describes the parceling of the variable size buffer of an fanotify_name_event. The dir_fh member of fanotify_name_event is renamed to _dir_fh and is not accessed directly, but via the fanotify_info_dir_fh() accessor. Although the dir_fh len information is already available in struct fanotify_fh, we store it also in dif_fh_totlen member of fanotify_info, including the size of fanotify_fh header, so we know the offset of the name in the buffer without looking inside the dir_fh. We also add a file_fh_totlen member to allow packing another file handle in the variable size buffer after the dir_fh and before the name. We are going to use that space to store the child fid. Link: https://lore.kernel.org/r/20200716084230.30611-10-amir73il@gmail.com Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions