diff options
| author | Baolin Wang <[email protected]> | 2024-10-26 13:51:52 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-07 04:11:18 +0000 |
| commit | 729881ffd390797077cec0e573d33b4d724d70b3 (patch) | |
| tree | ed311cd0da942c93a0234437e873666e15e53ff6 /arch/powerpc/lib/code-patching.c | |
| parent | mm/damon/vaddr: add 'nr_piece == 1' check in damon_va_evenly_split_region() (diff) | |
| download | kernel-729881ffd390797077cec0e573d33b4d724d70b3.tar.gz kernel-729881ffd390797077cec0e573d33b4d724d70b3.zip | |
mm: shmem: fallback to page size splice if large folio has poisoned pages
The tmpfs has already supported the PMD-sized large folios, and splice()
can not read any pages if the large folio has a poisoned page, which is
not good as Matthew pointed out in a previous email[1]:
"so if we have hwpoison set on one page in a folio, we now can't read
bytes from any page in the folio? That seems like we've made a bad
situation worse."
Thus add a fallback to the PAGE_SIZE splice() still allows reading normal
pages if the large folio has hwpoisoned pages.
[1] https://lore.kernel.org/all/[email protected]/
[[email protected]: code layout cleaup, per dhowells]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/e3737fbd5366c4de4337bf5f2044817e77a5235b.1729915173.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: David Howells <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
