aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2025-05-14 17:06:02 +0000
committerAndrew Morton <[email protected]>2025-05-21 05:49:39 +0000
commit97dfbbd135cb5e4426f37ca53a8fa87eaaa4e376 (patch)
treee60d991ee4228e6d5dd69010c119e4fa325ec3a3 /rust/helpers/task.c
parentMAINTAINERS: add hung-task detector section (diff)
downloadkernel-97dfbbd135cb5e4426f37ca53a8fa87eaaa4e376.tar.gz
kernel-97dfbbd135cb5e4426f37ca53a8fa87eaaa4e376.zip
highmem: add folio_test_partial_kmap()
In commit c749d9b7ebbc ("iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOCAL_FORCE_MAP"), Hugh correctly noted that if KMAP_LOCAL_FORCE_MAP is enabled, we must limit ourselves to PAGE_SIZE bytes per call to kmap_local(). The same problem exists in memcpy_from_folio(), memcpy_to_folio(), folio_zero_tail(), folio_fill_tail() and memcpy_from_file_folio(), so add folio_test_partial_kmap() to do this more succinctly. Link: https://lkml.kernel.org/r/[email protected] Fixes: 00cdf76012ab ("mm: add memcpy_from_file_folio()") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Al Viro <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions