[PATCH] mm: Reset zero swap page to empty_zero_page for reading swap fault.

2018-02-10 Thread zhouxianrong
Reset zero swap page to empty_zero_page for reading swap fault. for now zram driver could tell us which page is zero page and so it introduces PG_zero to flag the zeroed page. When reading swap fault happens it directly maps the fault address to empty_zero_page rather than the original swap page.

[PATCH] mm: Reset zero swap page to empty_zero_page for reading swap fault.

2018-02-10 Thread zhouxianrong
Reset zero swap page to empty_zero_page for reading swap fault. for now zram driver could tell us which page is zero page and so it introduces PG_zero to flag the zeroed page. When reading swap fault happens it directly maps the fault address to empty_zero_page rather than the original swap page.