eventfd: convert to use anon_inode_getfd()
authorEric Biggers <ebiggers@google.com>
Sat, 6 Jan 2018 17:45:42 +0000 (09:45 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 6 Jan 2018 18:47:20 +0000 (13:47 -0500)
commit7d815165c1a64da9fd1b0f4ac8d97ba938ff1d71
tree87c15fc769ffbff8099b6f4314c93b59c904154e
parent6db620012fceea7cf203a9889e311f27dc49a2c7
eventfd: convert to use anon_inode_getfd()

Nothing actually calls eventfd_file_create() besides the eventfd2()
system call itself.  So simplify things by folding it into the system
call and using anon_inode_getfd() instead of anon_inode_getfile().  This
removes over 40 lines with no change in functionality.

(eventfd_file_create() was apparently added years ago for KVM irqfd's,
but was never used.)

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/eventfd.c
include/linux/eventfd.h