From: Jan Kara Date: Fri, 4 Sep 2015 22:43:12 +0000 (-0700) Subject: fsnotify: get rid of fsnotify_destroy_mark_locked() X-Git-Tag: omap-for-v4.3/fixes-rc1~87^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4712e722f91457e60723b9cef6265a74290efba9;p=pandora-kernel.git fsnotify: get rid of fsnotify_destroy_mark_locked() fsnotify_destroy_mark_locked() is subtle to use because it temporarily releases group->mark_mutex. To avoid future problems with this function, split it into two. fsnotify_detach_mark() is the part that needs group->mark_mutex and fsnotify_free_mark() is the part that must be called outside of group->mark_mutex. This way it's much clearer what's going on and we also avoid some pointless acquisitions of group->mark_mutex. Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed