diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-04-24 16:46:39 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-04-28 18:27:28 +0300 |
| commit | 6a3f1a494bc91d7976cf0d2b200bb3f1a22eef64 (patch) | |
| tree | 38ed1500bb02c19b20159b97fbf0b7a98337b113 | |
| parent | c17eb7a5285a6d77c16397ad3b6223aca7a87d56 (diff) | |
| download | linux-6a3f1a494bc91d7976cf0d2b200bb3f1a22eef64.tar.xz | |
eventpoll: rename attach_epitem() to ep_attach_file()
ep_remove_file() tears down the f_ep linkage that attach_epitem()
establishes, so the pair should look like one. Rename to
ep_attach_file() for the "ep_*" + subject symmetry and to match the
naming used elsewhere in the file (ep_insert, ep_modify, ep_remove,
ep_remove_file, ep_remove_epi, ep_unregister_pollwait).
Pure rename; no functional change.
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Link: https://patch.msgid.link/20260424-work-epoll-rework-v1-8-249ed00a20f3@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
| -rw-r--r-- | fs/eventpoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index ba1017c72167..1fe9f1772a28 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1735,7 +1735,7 @@ static noinline void ep_destroy_wakeup_source(struct epitem *epi) wakeup_source_unregister(ws); } -static int attach_epitem(struct file *file, struct epitem *epi) +static int ep_attach_file(struct file *file, struct epitem *epi) { struct epitems_head *to_free = NULL; struct hlist_head *head = NULL; @@ -1806,7 +1806,7 @@ static int ep_insert(struct eventpoll *ep, const struct epoll_event *event, if (tep) mutex_lock_nested(&tep->mtx, 1); /* Add the current item to the list of active epoll hook for this file */ - if (unlikely(attach_epitem(tfile, epi) < 0)) { + if (unlikely(ep_attach_file(tfile, epi) < 0)) { if (tep) mutex_unlock(&tep->mtx); kmem_cache_free(epi_cache, epi); |
