projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ecbd3
)
fs/userfaultfd.c: drop dead code
author
Mike Rapoport
<rppt@linux.vnet.ibm.com>
Thu, 6 Jul 2017 22:38:35 +0000
(15:38 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 6 Jul 2017 23:24:33 +0000
(16:24 -0700)
Calculation of start end end in __wake_userfault function are not used
and can be removed.
Link:
http://lkml.kernel.org/r/1494930917-3134-1-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-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>
fs/userfaultfd.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/userfaultfd.c
b/fs/userfaultfd.c
index 6148ccd6cccf28f6c21be96bab078b65fcaafe9f..3d0dd082337a6d9b5b3efd3d19b8c193b9772f40 100644
(file)
--- a/
fs/userfaultfd.c
+++ b/
fs/userfaultfd.c
@@
-1114,11
+1114,6
@@
static ssize_t userfaultfd_read(struct file *file, char __user *buf,
static void __wake_userfault(struct userfaultfd_ctx *ctx,
struct userfaultfd_wake_range *range)
{
- unsigned long start, end;
-
- start = range->start;
- end = range->start + range->len;
-
spin_lock(&ctx->fault_pending_wqh.lock);
/* wake all in the range and autoremove */
if (waitqueue_active(&ctx->fault_pending_wqh))