mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
4495c08e84
commit
5198adf649
1 changed files with 1 additions and 5 deletions
|
|
@ -76,8 +76,7 @@ static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark)
|
|||
struct inotify_inode_mark *inode_mark;
|
||||
struct inode *inode;
|
||||
|
||||
if (!(mark->flags & FSNOTIFY_MARK_FLAG_ALIVE) ||
|
||||
!(mark->flags & FSNOTIFY_MARK_FLAG_INODE))
|
||||
if (!(mark->flags & FSNOTIFY_MARK_FLAG_INODE))
|
||||
return;
|
||||
|
||||
inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark);
|
||||
|
|
@ -113,9 +112,6 @@ static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark)
|
|||
unsigned int mflags = 0;
|
||||
struct inode *inode;
|
||||
|
||||
if (!(mark->flags & FSNOTIFY_MARK_FLAG_ALIVE))
|
||||
return;
|
||||
|
||||
if (mark->flags & FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY)
|
||||
mflags |= FAN_MARK_IGNORED_SURV_MODIFY;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue