diff options
author | Jan Kara <[email protected]> | 2020-03-24 17:04:20 +0100 |
---|---|---|
committer | Jan Kara <[email protected]> | 2020-03-25 10:27:16 +0100 |
commit | 7088f35720a55b99624ea36091538baec7ec611f (patch) | |
tree | 6e6d3eecaa9d3c239204477f6ab227dc4d8ee860 /lib | |
parent | afc894c784c84cb3bb85a235feca2cb278f7b023 (diff) |
fanotify: divorce fanotify_path_event and fanotify_fid_event
Breakup the union and make them both inherit from abstract fanotify_event.
fanotify_path_event, fanotify_fid_event and fanotify_perm_event inherit
from fanotify_event.
type field in abstract fanotify_event determines the concrete event type.
fanotify_path_event, fanotify_fid_event and fanotify_perm_event are
allocated from separate memcache pools.
Rename fanotify_perm_event casting macro to FANOTIFY_PERM(), so that
FANOTIFY_PE() and FANOTIFY_FE() can be used as casting macros to
fanotify_path_event and fanotify_fid_event.
[JK: Cleanup FANOTIFY_PE() and FANOTIFY_FE() to be proper inline
functions and remove requirement that fanotify_event is the first in
event structures]
Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions