[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about swap_in() in 2.2.16 ....
hi,
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 ? Or am i missing something here ?
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/