mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
fs/userfaultfd.c: drop dead code
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>
This commit is contained in:
parent
57ecbd3831
commit
f93ae36462
1 changed files with 0 additions and 5 deletions
|
@ -1114,11 +1114,6 @@ static ssize_t userfaultfd_read(struct file *file, char __user *buf,
|
||||||
static void __wake_userfault(struct userfaultfd_ctx *ctx,
|
static void __wake_userfault(struct userfaultfd_ctx *ctx,
|
||||||
struct userfaultfd_wake_range *range)
|
struct userfaultfd_wake_range *range)
|
||||||
{
|
{
|
||||||
unsigned long start, end;
|
|
||||||
|
|
||||||
start = range->start;
|
|
||||||
end = range->start + range->len;
|
|
||||||
|
|
||||||
spin_lock(&ctx->fault_pending_wqh.lock);
|
spin_lock(&ctx->fault_pending_wqh.lock);
|
||||||
/* wake all in the range and autoremove */
|
/* wake all in the range and autoremove */
|
||||||
if (waitqueue_active(&ctx->fault_pending_wqh))
|
if (waitqueue_active(&ctx->fault_pending_wqh))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue