]> git.baikalelectronics.ru Git - kernel.git/commit
Kill indirect include of file.h from eventfd.h, use fdget() in cgroup.c
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 30 Aug 2013 16:29:49 +0000 (12:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 7 Sep 2013 23:54:57 +0000 (19:54 -0400)
commit1f0f1ce68679510b27eafddd3393097a3ca433c2
treeb54140b4a3db046bebc404ae57e61d9f1ca31b94
parent05ad354d8800d08bd68223ae1c8dfdf8ea1e33ed
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: Al Viro <viro@zeniv.linux.org.uk>
include/linux/eventfd.h
kernel/cgroup.c