diff options
Diffstat (limited to 'fs/select.c')
-rw-r--r-- | fs/select.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/select.c b/fs/select.c index 317891ff8165..4a6b6e4b21cb 100644 --- a/fs/select.c +++ b/fs/select.c | |||
@@ -34,29 +34,6 @@ | |||
34 | 34 | ||
35 | #include <linux/uaccess.h> | 35 | #include <linux/uaccess.h> |
36 | 36 | ||
37 | __poll_t vfs_poll(struct file *file, struct poll_table_struct *pt) | ||
38 | { | ||
39 | if (file->f_op->poll) { | ||
40 | return file->f_op->poll(file, pt); | ||
41 | } else if (file_has_poll_mask(file)) { | ||
42 | unsigned int events = poll_requested_events(pt); | ||
43 | struct wait_queue_head *head; | ||
44 | |||
45 | if (pt && pt->_qproc) { | ||
46 | head = file->f_op->get_poll_head(file, events); | ||
47 | if (!head) | ||
48 | return DEFAULT_POLLMASK; | ||
49 | if (IS_ERR(head)) | ||
50 | return EPOLLERR; | ||
51 | pt->_qproc(file, head, pt); | ||
52 | } | ||
53 | |||
54 | return file->f_op->poll_mask(file, events); | ||
55 | } else { | ||
56 | return DEFAULT_POLLMASK; | ||
57 | } | ||
58 | } | ||
59 | EXPORT_SYMBOL_GPL(vfs_poll); | ||
60 | 37 | ||
61 | /* | 38 | /* |
62 | * Estimate expected accuracy in ns from a timeval. | 39 | * Estimate expected accuracy in ns from a timeval. |