mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
make kernel-side POLL... arch-independent
mangle/demangle on the way to/from userland Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
69112736e2
commit
c71d227fc4
10 changed files with 125 additions and 8 deletions
|
|
@ -2764,7 +2764,7 @@ __poll_t 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);
|
||||
inarg.events = mangle_poll(poll_requested_events(wait));
|
||||
|
||||
/*
|
||||
* Ask for notification iff there's someone waiting for it.
|
||||
|
|
@ -2786,7 +2786,7 @@ __poll_t fuse_file_poll(struct file *file, poll_table *wait)
|
|||
err = fuse_simple_request(fc, &args);
|
||||
|
||||
if (!err)
|
||||
return outarg.revents;
|
||||
return demangle_poll(outarg.revents);
|
||||
if (err == -ENOSYS) {
|
||||
fc->no_poll = 1;
|
||||
return DEFAULT_POLLMASK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue