fsnotify: Remove unnecessary tests when showing fdinfo
authorJan Kara <jack@suse.cz>
Fri, 9 Dec 2016 08:18:21 +0000 (09:18 +0100)
committerJan Kara <jack@suse.cz>
Mon, 3 Apr 2017 14:56:18 +0000 (16:56 +0200)
commit5198adf649a0b7b0f9ddb98b264e57b41516116b
treea7b1b404e7cd9de346338f3585ddb775d6186073
parent4495c08e84729385774601b5146d51d9e5849f81
fsnotify: Remove unnecessary tests when showing fdinfo

show_fdinfo() iterates group's list of marks. All marks found there are
guaranteed to be alive and they stay so until we release
group->mark_mutex. So remove uncecessary tests whether mark is alive.

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