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
..
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2018-01-29 06:42:20 -05:00
2018-01-29 13:33:53 -08:00
2018-01-30 14:43:12 -08:00
2017-11-27 13:05:09 -08:00
2017-11-02 11:10:55 +01:00
2018-01-29 14:04:23 -08:00
2017-11-27 16:20:05 -05:00
2017-12-08 11:07:12 +01:00
2018-01-28 09:19:45 -06:00
2018-01-30 17:58:07 -08:00
2017-10-19 16:15:16 +02:00
2017-12-17 12:20:58 -08:00
2017-11-14 11:35:15 -08:00
2017-11-27 16:20:05 -05:00
2018-01-31 08:48:37 -08:00
2018-01-30 18:59:03 -08:00
2018-01-30 17:58:07 -08:00
2017-07-11 06:09:21 -04:00
2017-11-27 13:05:09 -08:00
2018-01-29 06:42:20 -05:00
2017-03-03 11:38:56 -08: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-27 13:05:09 -08:00
2017-11-16 11:41:22 -08:00
2018-01-30 17:58:07 -08:00
2018-01-30 10:32:30 -07:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-02 11:10:55 +01:00
2017-12-10 12:58:18 -08:00
2018-01-31 17:18:39 -08:00
2017-11-27 13:05:09 -08:00
2017-11-17 09:51:57 -08:00
2018-01-31 09:25:20 -08:00
2017-11-27 13:05:09 -08:00
2018-01-30 17:58:07 -08:00
2018-01-24 17:33:57 -05:00
2017-11-27 13:05:09 -08:00
2018-01-30 18:59:03 -08:00
2018-01-31 09:25:20 -08:00
2017-11-27 16:45:11 -05:00
2018-01-29 13:33:53 -08:00
2017-11-27 13:05:09 -08:00
2017-11-02 11:10:55 +01:00
2018-01-30 17:58:07 -08:00
2018-01-01 10:09:33 -05:00
2018-01-31 17:18:35 -08:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-01-30 17:58:07 -08:00
2017-12-14 11:14:52 +01:00
2018-01-31 17:18:38 -08:00
2017-11-21 15:57:05 -08:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-29 16:46:48 +01:00
2017-09-06 17:27:26 -07:00
2017-11-30 18:38:47 -05:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-07-06 03:31:46 -04:00
2018-01-18 00:18:49 +01:00
2017-11-27 13:05:09 -08:00
2018-01-29 06:42:21 -05:00
2018-01-31 10:18:00 -08:00
2017-11-17 11:54:55 -08:00
2016-12-24 11:46:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-04 19:05:15 -04:00
2017-11-17 12:54:01 -08:00
2017-11-16 12:50:35 -08:00
2016-08-02 19:35:15 -04:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:33 -07:00
2017-10-03 17:54:25 -07:00
2017-11-14 15:32:19 -08:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-02-01 09:13:51 +01:00
2017-11-17 12:54:01 -08:00
2017-04-17 12:52:27 -04:00
2017-11-17 11:54:55 -08:00
2018-01-31 17:18:37 -08:00
2018-01-31 09:25:20 -08:00
2016-12-24 11:46:01 -08:00
2018-01-08 10:41:39 -08:00
2017-11-02 11:10:55 +01:00
2018-01-31 09:25:20 -08:00
2017-11-28 19:56:15 -05:00
2018-01-03 10:13:36 -08:00
2018-01-31 17:18:39 -08:00
2017-11-17 12:54:01 -08:00
2017-12-07 14:23:30 -05:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-03-02 08:42:35 +01:00
2018-01-06 09:18:00 -07:00
2018-01-29 06:42:21 -05:00
2017-11-10 08:48:46 -05:00
2017-11-02 11:10:55 +01:00
2018-01-29 07:27:24 -08:00
2017-07-12 16:26:00 -07:00
2017-09-10 19:31:46 -04:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-02 11:10:55 +01:00
2017-11-29 18:40:43 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 09:25:20 -08:00
2017-12-09 20:16:33 -05:00
2017-11-27 13:05:09 -08:00
2017-09-05 12:53:12 +02:00
2017-11-27 16:20:05 -05:00
2017-05-23 08:41:17 -05:00
2017-02-04 00:01:06 +13:00
2018-01-02 19:27:28 -08:00
2018-01-30 17:58:07 -08:00
2017-11-17 12:08:18 -08:00
2017-11-07 10:32:44 +01:00
2017-11-29 19:00:41 -05:00
2017-11-02 11:10:55 +01:00
2017-11-27 16:20:05 -05:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-01-31 09:25:20 -08:00
2017-11-14 15:32:19 -08:00
2017-11-27 16:20:05 -05:00
2018-01-31 17:18:39 -08:00
2017-11-02 11:10:55 +01:00
2017-10-04 18:03:15 +11:00