There is an "early COW" mechanism in __do_fault() which, if the page is
not present and the fault is FAULT_PAGE_WRITE goes ahead and copies the
page in order to prevent the next exception.
The question - why the code in __do_fault() does not decrease the shared
map count of the old page as do_wp_page does ? And while we are at it,
while this "early COW" code is much more simple than do_wp_page()?
Thanks.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>