[PATCH] ZERO_PAGE again v5.

From: KAMEZAWA Hiroyuki
Date: Wed Aug 05 2009 - 06:18:40 EST



Updated from v4 as
- avoid to add new arguments to vm_normal_page().
vm_normal_page() always returns NULL if ZERO_PAGE is found.
- follow_page() directly handles pte_special and ANON_ZERO_PAGE.

Then, amount of changes are reduced. Thanks for advices.

Concerns pointed out:
- Does use_zero_page() cover all cases ?
I think yes..
- All get_user_pages() callers, which may find ZERO_PAGE is safe ?
need tests.
- All follow_pages() callers, which may find ZERO_PAGE is safe ?
I think yes.

Thanks,
-Kame

--
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/