Commit 0415d291 authored by Enke Chen's avatar Enke Chen Committed by Miklos Szeredi
Browse files

fuse: send poll events

commit 626cf236

 "poll: add poll_requested_events()..." enabled us to send the
requested events to the filesystem.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent dfca7ceb
......@@ -2167,6 +2167,7 @@ unsigned fuse_file_poll(struct file *file, poll_table *wait)
return DEFAULT_POLLMASK;
poll_wait(file, &ff->poll_wait, wait);
inarg.events = (__u32)poll_requested_events(wait);
/*
* Ask for notification iff there's someone waiting for it.
......
......@@ -63,6 +63,7 @@
*
* 7.21
* - add FUSE_READDIRPLUS
* - send the requested events in POLL request
*/
#ifndef _LINUX_FUSE_H
......@@ -585,7 +586,7 @@ struct fuse_poll_in {
__u64 fh;
__u64 kh;
__u32 flags;
__u32 padding;
__u32 events;
};
struct fuse_poll_out {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment