lkml.org 
[lkml]   [2012]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[RFC patch] vm: clear swap entry before copying pte
From
If swap entry is cleared, we can see the reason that copying pte is
interrupted. If due to page table lock held long enough, no need to
increase swap count.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/mm/memory.c Fri Jul 27 21:33:32 2012
+++ b/mm/memory.c Fri Jul 27 21:35:24 2012
@@ -971,6 +971,7 @@ again:
if (add_swap_count_continuation(entry, GFP_KERNEL) < 0)
return -ENOMEM;
progress = 0;
+ entry.val = 0;
}
if (addr != end)
goto again;
--

\
 
 \ /
  Last update: 2012-07-27 16:21    [W:0.108 / U:1.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site