fanotify: Store fanotify handles differently
authorJan Kara <jack@suse.cz>
Tue, 24 Mar 2020 15:55:37 +0000 (16:55 +0100)
committerJan Kara <jack@suse.cz>
Wed, 25 Mar 2020 09:27:16 +0000 (10:27 +0100)
commitafc894c784c84cb3bb85a235feca2cb278f7b023
tree13e6191ff5d1c60b09ad9d0eec3bf7578c2dcb01
parenta741c2febeadc675aef84bcd6924b6522577d593
fanotify: Store fanotify handles differently

Currently, struct fanotify_fid groups fsid and file handle and is
unioned together with struct path to save space. Also there is fh_type
and fh_len directly in struct fanotify_event to avoid padding overhead.
In the follwing patches, we will be adding more event types and this
packing makes code difficult to follow. So unpack everything and create
struct fanotify_fh which groups members logically related to file handle
to make code easier to follow. In the following patch we will pack
things again differently to make events smaller.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c