Skip to content
Commit 4e10f3c9 authored by Al Viro's avatar Al Viro
Browse files

Kill indirect include of file.h from eventfd.h, use fdget() in cgroup.c



kernel/cgroup.c is the only place in the tree that relies on eventfd.h
pulling file.h; move that include there.  Switch from eventfd_fget()/fput()
to fdget()/fdput(), while we are at it - eventfd_ctx_fileget() will fail
on non-eventfd descriptors just fine, no need to do that check twice...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d0407903
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment