summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2010-11-23 17:26:17 -0500
committerEric Paris <eparis@redhat.com>2010-11-29 14:51:26 -0500
commitcf3c7679a3611e6cbf16b48dc43467429a894221 (patch)
treeef5ef75c2ed226be162c9ebd776d1bd7910e1057 /fs
parent2d5df30dfa3cbb7515a2ee7e2037d941d1d76d6f (diff)
fanotify: remove dead code in prepare_for_access_response
Remove the unnecessary check for the bypass_perm flag in prepare_for_access_response(), since this function can't be called after fanotify_release() is called we know the flag cannot ever be set. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/notify/fanotify/fanotify_user.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
index 772a5dccc5cd..eddad5530886 100644
--- a/fs/notify/fanotify/fanotify_user.c
+++ b/fs/notify/fanotify/fanotify_user.c
@@ -210,14 +210,6 @@ static int prepare_for_access_response(struct fsnotify_group *group,
re->fd = fd;
mutex_lock(&group->fanotify_data.access_mutex);
-
- if (atomic_read(&group->fanotify_data.bypass_perm)) {
- mutex_unlock(&group->fanotify_data.access_mutex);
- kmem_cache_free(fanotify_response_event_cache, re);
- event->response = FAN_ALLOW;
- return 0;
- }
-
list_add_tail(&re->list, &group->fanotify_data.access_list);
mutex_unlock(&group->fanotify_data.access_mutex);