aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/interface.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2024-10-05 18:23:04 +0000
committerChristian Brauner <[email protected]>2024-10-07 11:45:15 +0000
commitc6a90fe7f080d71271b723490454cfda1f81e4b0 (patch)
tree2bca0b3b2cbbb4767bbbde44cc61546520195cf6 /fs/cachefiles/interface.c
parentnetfs: Remove call to folio_index() (diff)
downloadkernel-c6a90fe7f080d71271b723490454cfda1f81e4b0.tar.gz
kernel-c6a90fe7f080d71271b723490454cfda1f81e4b0.zip
netfs: Fix a few minor bugs in netfs_page_mkwrite()
We can't return with VM_FAULT_SIGBUS | VM_FAULT_LOCKED; the core code will not unlock the folio in this instance. Introduce a new "unlock" error exit to handle this case. Use it to handle the "folio is truncated" check, and change the "writeback interrupted by a fatal signal" to do a NOPAGE exit instead of letting the core code install the folio currently under writeback before killing the process. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/cachefiles/interface.c')
0 files changed, 0 insertions, 0 deletions