diff options
| author | Miaohe Lin <[email protected]> | 2022-03-22 21:44:47 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-22 22:57:07 +0000 |
| commit | 593396b86ef6f79c71e09c183eae28040ccfeedf (patch) | |
| tree | 3fcb006fe4f084695565f1ac0e77d30cfc64868d /mm/sparse-vmemmap.c | |
| parent | mm/memory-failure.c: fix race with changing page compound again (diff) | |
| download | kernel-593396b86ef6f79c71e09c183eae28040ccfeedf.tar.gz kernel-593396b86ef6f79c71e09c183eae28040ccfeedf.zip | |
mm/memory-failure.c: avoid calling invalidate_inode_page() with unexpected pages
Since commit 042c4f32323b ("mm/truncate: Inline invalidate_complete_page()
into its one caller"), invalidate_inode_page() can invalidate the pages
in the swap cache because the check of page->mapping != mapping is
removed. But invalidate_inode_page() is not expected to deal with the
pages in swap cache. Also non-lru movable page can reach here too.
They're not page cache pages. Skip these pages by checking
PageSwapCache and PageLRU.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions
