Re: [PATCH v2] mm: remove redundant check non_swap_entry()

2020-06-19 Thread David Hildenbrand
On 15.06.20 19:54, Ralph Campbell wrote: > In zap_pte_range(), the check for non_swap_entry() and > is_device_private_entry() is unnecessary since the latter is sufficient > to determine if the page is a device private page. Remove the test for > non_swap_entry() to simplify the code and for

[PATCH v2] mm: remove redundant check non_swap_entry()

2020-06-15 Thread Ralph Campbell
In zap_pte_range(), the check for non_swap_entry() and is_device_private_entry() is unnecessary since the latter is sufficient to determine if the page is a device private page. Remove the test for non_swap_entry() to simplify the code and for clarity. Signed-off-by: Ralph Campbell Reviewed-by: