author: Jan Kara <jack@suse.cz> 2014-04-03 14:46:32 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2014-04-03 16:20:51 -0700
commit: 3298cf37bee59c66a51da0cea8bae0d0418e27fd
parent: ddae82d8e67fbef534e3a240da7e77cc8654462c
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 7 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
index 287a22c04149..70fe65437d21 100644
--- a/fs/notify/fanotify/fanotify_user.c
+++ b/fs/notify/fanotify/fanotify_user.c
@@ -211,14 +211,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);
- FANOTIFY_E(event)->response = FAN_ALLOW;
- return 0;
- }
-
list_add_tail(&re->list, &group->fanotify_data.access_list);
mutex_unlock(&group->fanotify_data.access_mutex);