diff --git a/fs/eventpoll.c b/fs/eventpoll.c index f464f2f39e0e..9ea6a2bd3d87 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -334,7 +334,7 @@ static void __init epoll_sysctls_init(void) static const struct file_operations eventpoll_fops; -static inline int is_file_epoll(struct file *f) +int is_file_epoll(struct file *f) { return f->f_op == &eventpoll_fops; } diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h index 728fb5dee5ed..7bf30e9f90d7 100644 --- a/include/linux/eventpoll.h +++ b/include/linux/eventpoll.h @@ -63,6 +63,7 @@ static inline void eventpoll_release(struct file *file) int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds, bool nonblock); +int is_file_epoll(struct file *f); /* Tells if the epoll_ctl(2) operation needs an event copy from userspace */ static inline int ep_op_has_event(int op)