]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: fix check in inotify fdinfo printing
authorJan Kara <jack@suse.cz>
Fri, 4 Sep 2015 22:43:03 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit7939ae22628f358f145af55b48f8a620cf5aada2
treea5693cbd4b4366d886df9da609b0c115bff32e44
parentdaff68f2a6959df5787ed5e42e4b1d027f44dc33
fsnotify: fix check in inotify fdinfo printing

A check in inotify_fdinfo() checking whether mark is valid was always
true due to a bug.  Luckily we can never get to invalidated marks since
we hold mark_mutex and invalidated marks get removed from the group list
when they are invalidated under that mutex.

Anyway fix the check to make code more future proof.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/fdinfo.c