Thread (2 messages) 2 messages, 2 authors, 2000-11-10

Re: Question about swap_in() in 2.2.16 ....

From: Shuvabrata Ganguly <hidden>
Date: 2000-11-10 04:23:05

"Stephen C. Tweedie" wrote:
Hi,

On Wed, Nov 08, 2000 at 01:32:26AM -0500, Shuvabrata Ganguly wrote:
quoted
after the missing page has been swapped in this bit of code is
executed:-

if (!write_access || is_page_shared(page_map)) {
      set_pte(page_table, mk_pte(page, vma->vm_page_prot));
      return 1;
 }

Now this creates a read-only mapping  even if the access was a "write
acess"  ( if the page is shared ). Doesnt this mean that an additional
"write-protect" fault will be taken immediately when the process tries
to write again ?
Yes.
Then why dont we give it a private page in the first place ?

Cheers
Joy

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help