summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorAmir Goldstein2018-04-21 01:10:49 +0200
committerJan Kara2018-05-18 14:58:22 +0200
commitd6f7b98bc8147abd290ead82922f8d83c525fb42 (patch)
treeca48d6cfca27bb48e0639fc2674cd35edc4ccc6d /kernel/audit_watch.c
parentMerge tag 'hwmon-for-linus-v4.17-rc6' of git://git.kernel.org/pub/scm/linux/k... (diff)
downloadkernel-qcow2-linux-d6f7b98bc8147abd290ead82922f8d83c525fb42.tar.gz
kernel-qcow2-linux-d6f7b98bc8147abd290ead82922f8d83c525fb42.tar.xz
kernel-qcow2-linux-d6f7b98bc8147abd290ead82922f8d83c525fb42.zip
fsnotify: use type id to identify connector object type
An fsnotify_mark_connector is referencing a single type of object (either inode or vfsmount). Instead of storing a type mask in connector->flags, store a single type id in connector->type to identify the type of object. When a connector object is detached from the object, its type is set to FSNOTIFY_OBJ_TYPE_DETACHED and this object is not going to be reused. The function fsnotify_clear_marks_by_group() is the only place where type mask was used, so use type flags instead of type id to this function. This change is going to be more convenient when adding a new object type (super block). Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel/audit_watch.c')
0 files changed, 0 insertions, 0 deletions