eventpoll: move file checking earlier for epoll_ctl()
authorJens Axboe <axboe@kernel.dk>
Fri, 28 Oct 2022 21:34:00 +0000 (15:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Dec 2022 17:33:37 +0000 (10:33 -0700)
commit3fe64a3a96d4fcfba38f376e434ce251f6183943
treedeb916a22573055b918b92fcff0e1b0f13debc15
parent2416e4ed183c9870d9a4ba7f67a811df57c64e74
eventpoll: move file checking earlier for epoll_ctl()

This just cleans up the checking a bit, in preparation for a change
that will need access to 'ep' earlier.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/eventpoll.c