# # Patch managed by http://www.holgerschurig.de/patcher.html # --- //media/storage/src/linux-2.6.38/fs/notify/fanotify/fanotify_user.c~fanotify_write_poll +++ //media/storage/src/linux-2.6.38/fs/notify/fanotify/fanotify_user.c @@ -301,12 +301,16 @@ static unsigned int fanotify_poll(struct file *file, poll_table *wait) { struct fsnotify_group *group = file->private_data; +#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS + int ret = POLLOUT | POLLWRNORM; +#else int ret = 0; +#endif poll_wait(file, &group->notification_waitq, wait); mutex_lock(&group->notification_mutex); if (!fsnotify_notify_queue_is_empty(group)) - ret = POLLIN | POLLRDNORM; + ret |= POLLIN | POLLRDNORM; mutex_unlock(&group->notification_mutex); return ret;