Re: [RFC patch] vm: clear swap entry before copying pte

From: Hillf Danton
Date: Tue Jul 31 2012 - 08:32:20 EST


Hi Hugh,

On Tue, Jul 31, 2012 at 10:34 AM, Hugh Dickins <hughd@xxxxxxxxxx> wrote:
> But I can see that the lack of reinitialization of entry.val here
> does raise doubt and confusion. A better tidyup would be to remove
> the initialization of swp_entry_t entry from its onstack declaration,
> and do it at the again label instead.


I just want to avoid allocating page in add_swap_count_continuation()
for non clear reason, as you see, which is not a bug fix.

Thanks,
Hillf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/