]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fsnotify: dont put marks on temporary list when clearing marks by group
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Tue, 14 Jun 2011 15:29:53 +0000 (17:29 +0200)
committerEric Paris <eparis@redhat.com>
Mon, 26 Mar 2012 15:21:16 +0000 (11:21 -0400)
commitaaf3ccb72ad1d1ecbca2284751a440e0540301a7
tree0b713d3b20d334ad03cb254ac634dd9685099040
parentfb634e66bbe4119fe5074ecf89630cdb361041d6
fsnotify: dont put marks on temporary list when clearing marks by group

In clear_marks_by_group_flags() the mark list of a group is iterated and the
marks are put on a temporary list.
Since we introduced fsnotify_destroy_mark_locked() we dont need the temp list
any more and are able to remove the marks while the mark list is iterated and
the mark list mutex is held.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/mark.c
include/linux/fsnotify_backend.h