userfaultfd: non-cooperative: optimize mremap_userfaultfd_complete()
authorAndrea Arcangeli <[email protected]>
Wed, 22 Feb 2017 23:42:37 +0000 (15:42 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Feb 2017 00:41:28 +0000 (16:41 -0800)
commit90794bf19dc19691a16b71bcd75c04094d9e392d
tree96c80c3f2d4b0aa5b72ab5965269e7050fec4185
parent72f87654c69690ff4721bd9b4a39983f971de9a5
userfaultfd: non-cooperative: optimize mremap_userfaultfd_complete()

Optimize the mremap_userfaultfd_complete() interface to pass only the
vm_userfaultfd_ctx pointer through the stack as a microoptimization.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrea Arcangeli <[email protected]>
Reported-by: Hillf Danton <[email protected]>
Acked-by: Mike Rapoport <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Michael Rapoport <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/userfaultfd.c
include/linux/userfaultfd_k.h
mm/mremap.c