Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

eventpoll: Don't re-zero eventpoll fields

Remove redundant and unnecessary code.

ep_alloc uses kzalloc to create struct eventpoll, so there is no need to
set fields to defaults of 0. This was accidentally introduced in commit
85455c795c07 ("eventpoll: support busy poll per epoll instance") and
expanded on in follow-up commits.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Link: https://lore.kernel.org/r/20240807105231.179158-1-jdamato@fastly.com
Reviewed-by: Martin Karsten <mkarsten@uwaterloo.ca>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Joe Damato and committed by
Christian Brauner
4f98f380 28c7658b

-5
-5
fs/eventpoll.c
··· 2200 2200 error = PTR_ERR(file); 2201 2201 goto out_free_fd; 2202 2202 } 2203 - #ifdef CONFIG_NET_RX_BUSY_POLL 2204 - ep->busy_poll_usecs = 0; 2205 - ep->busy_poll_budget = 0; 2206 - ep->prefer_busy_poll = false; 2207 - #endif 2208 2203 ep->file = file; 2209 2204 fd_install(fd, file); 2210 2205 return fd;