diff options
| author | Ralph Campbell <[email protected]> | 2020-08-07 06:22:21 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-08-07 18:33:26 +0000 |
| commit | 463b7a173d52f0b15473171fe895ab3a3d852a5e (patch) | |
| tree | a4e87cc9078652d106387a68a126286365331dec /arch/x86/mm/fault.c | |
| parent | mm/page_counter.c: fix protection usage propagation (diff) | |
| download | kernel-463b7a173d52f0b15473171fe895ab3a3d852a5e.tar.gz kernel-463b7a173d52f0b15473171fe895ab3a3d852a5e.zip | |
mm: remove redundant check non_swap_entry()
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/x86/mm/fault.c')
0 files changed, 0 insertions, 0 deletions
