summaryrefslogtreecommitdiff
path: root/include/linux/eventpoll.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-09-27 11:18:30 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-10-25 20:02:06 -0400
commit44cdc1d952e3f7aa9944c1bbf38fc23f49885017 (patch)
tree14fc8634a7bff90180b324e83be37c8cadb71e97 /include/linux/eventpoll.h
parentd1ec50adb560983635bd31263012e688cc167f31 (diff)
convert ->f_ep_links/->fllink to hlist
we don't care about the order of elements there Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/eventpoll.h')
-rw-r--r--include/linux/eventpoll.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h
index 8f000fada5a4..4e215ccfa792 100644
--- a/include/linux/eventpoll.h
+++ b/include/linux/eventpoll.h
@@ -25,7 +25,7 @@ struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long t
/* Used to initialize the epoll bits inside the "struct file" */
static inline void eventpoll_init_file(struct file *file)
{
- INIT_LIST_HEAD(&file->f_ep_links);
+ INIT_HLIST_HEAD(&file->f_ep_links);
INIT_LIST_HEAD(&file->f_tfile_llink);
}
@@ -50,7 +50,7 @@ static inline void eventpoll_release(struct file *file)
* because the file in on the way to be removed and nobody ( but
* eventpoll ) has still a reference to this file.
*/
- if (likely(list_empty(&file->f_ep_links)))
+ if (likely(hlist_empty(&file->f_ep_links)))
return;
/*