diff options
author | Eric Biggers <[email protected]> | 2018-01-31 16:19:48 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-01-31 17:18:39 -0800 |
commit | 284cd241a18ee6d999296f8ff3104eb6d2fc898f (patch) | |
tree | 001b843c3d63357e0a6a7dbb95192bd5feba116d /drivers/fpga/fpga-mgr.c | |
parent | c5c63835e5713b09fc974241db47956362a63efa (diff) |
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/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Mike Rapoport <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions