OSDN Git Service

fsnotify: Remove indirection from mark list addition
authorJan Kara <jack@suse.cz>
Tue, 14 Mar 2017 15:11:23 +0000 (16:11 +0100)
committerJan Kara <jack@suse.cz>
Mon, 10 Apr 2017 15:37:35 +0000 (17:37 +0200)
commit755b5bc681eb46de7bfaec196f85e30efd95bd9f
tree1fc0f867ae0e8edf6f672f43ed8f86ab658197f0
parente911d8af87dba7642138f4320ca3db80629989f2
fsnotify: Remove indirection from mark list addition

Adding notification mark to object list has been currently done through
fsnotify_add_{inode|vfsmount}_mark() helpers from
fsnotify_add_mark_locked() which call fsnotify_add_mark_list(). Remove
this unnecessary indirection to simplify the code.

Pushing all the locking to fsnotify_add_mark_list() also allows us to
allocate the connector structure with GFP_KERNEL mode.

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.h
fs/notify/inode_mark.c
fs/notify/mark.c
fs/notify/vfsmount_mark.c