Eric Biggers 284cd241a1 userfaultfd: convert to use anon_inode_getfd()
Nothing actually calls userfaultfd_file_create() besides the
userfaultfd() system call itself.  So simplify things by folding it into
the system call and using anon_inode_getfd() instead of
anon_inode_getfile().  Do the same in resolve_userfault_fork() as well.

This removes over 50 lines with no change in functionality.

Link: http://lkml.kernel.org/r/20171229212403.22800-1-ebiggers3@gmail.com
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-01-31 17:18:39 -08:00
..
2018-01-29 06:42:20 -05:00
2018-01-29 13:33:53 -08:00
2018-01-29 14:04:23 -08:00
2017-12-17 12:20:58 -08:00
2017-11-27 16:20:05 -05:00
2018-01-29 06:42:20 -05:00
2018-01-29 06:42:20 -05:00
2018-01-29 13:33:53 -08:00
2018-01-30 19:07:32 -08:00
2018-01-29 06:42:20 -05:00
2017-11-16 11:41:22 -08:00
2017-11-17 09:51:57 -08:00
2018-01-24 17:33:57 -05:00
2018-01-29 13:33:53 -08:00
2018-01-01 10:09:33 -05:00
2018-01-29 06:42:21 -05:00
2018-01-31 10:18:00 -08:00
2017-09-04 19:05:15 -04:00
2017-04-17 12:52:27 -04:00
2018-01-31 17:18:37 -08:00
2018-01-03 10:13:36 -08:00
2017-12-07 14:23:30 -05:00
2018-01-29 07:27:24 -08:00
2017-12-09 20:16:33 -05:00
2017-11-27 16:20:05 -05:00
2017-11-27 16:20:05 -05:00
2017-11-27 16:20:05 -05:00