Skip to contentSkip to conversation

remove stale comment from swapfile.c

PATCH In review [email protected] 1 participant 1 message Aug 12, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/39 remove stale comment from swapfile.c

From: Paolo 'Blaisorblade' Giarrusso <[email protected]>

Seems like on 2.4.9.4 this comment got out of sync ;-)

I'm not completely sure on which basis we don't need any more to do as the comment suggests, but it seems that when faulting in a second time the same swap page, can_share_swap_page() returns false, and we do an early COW break, so there's no need to write-protect the page.

No idea why we don't defer the COW break.

Reference commit from GIT version of BKCVS history:
5ee46c7964de4b1969fc5be036167eb2da0de4e2, BKRev 3c603c81PtWl2I1NnVuphvsItrD1hg (v2.4.9.3 -> v2.4.9.4).

---

 linux-2.6.git-paolo/mm/swapfile.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)
mm/swapfile.c renamed from mm/swapfile.c~remove-stale-comment-swap-file +1 -4
diff -puN mm/swapfile.c~remove-stale-comment-swap-file mm/swapfile.c
@@ -388,10 +388,7 @@ void free_swap_and_cache(swp_entry_t ent
 }
 
 /*
- * Always set the resulting pte to be nowrite (the same as COW pages
- * after one process has exited).  We don't know just how many PTEs will
- * share this swap entry, so be cautious and let do_wp_page work out
- * what to do if a write is requested later.
+ * Since we're swapping it in, we mark it as old.
  *
  * vma->vm_mm->page_table_lock is held.
  */

_

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel