From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: Linux-MM@kvack.org
Cc: torvalds@transmeta.com, number6@the-village.bc.nu
Subject: [PATCH] kanoj-mm2.0-2.2.9 unneccesary page force in by munlock
Date: Sun, 16 May 1999 21:02:04 -0700 (PDT) [thread overview]
Message-ID: <199905170402.VAA25069@google.engr.sgi.com> (raw)
While looking at the code for munlock() in mm/mlock.c, I found
that munlock() unneccesarily executes a code path that forces
page fault in over the entire range. The following patch fixes
this problem:
--- /usr/tmp/p_rdiff_a007Qs/mlock.c Sun May 16 20:48:12 1999
+++ mm/mlock.c Sun May 16 20:47:01 1999
@@ -117,8 +117,9 @@
pages = (end - start) >> PAGE_SHIFT;
if (!(newflags & VM_LOCKED))
pages = -pages;
+ else
+ make_pages_present(start, end);
vma->vm_mm->locked_vm += pages;
- make_pages_present(start, end);
}
return retval;
}
Please review and include in the source.
Thanks.
Kanoj
kanoj@engr.sgi.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next reply other threads:[~1999-05-17 4:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-17 4:02 Kanoj Sarcar [this message]
1999-05-17 4:48 ` [PATCH] kanoj-mm2.0-2.2.9 unneccesary page force in by munlock Linus Torvalds
1999-05-17 6:16 ` Kanoj Sarcar
1999-05-17 16:11 ` Linus Torvalds
1999-05-17 17:31 ` Kanoj Sarcar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199905170402.VAA25069@google.engr.sgi.com \
--to=kanoj@google.engr.sgi.com \
--cc=Linux-MM@kvack.org \
--cc=number6@the-village.bc.nu \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.