diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-10-05 19:23:04 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-10-07 13:45:15 +0200 |
commit | c6a90fe7f080d71271b723490454cfda1f81e4b0 (patch) | |
tree | 2bca0b3b2cbbb4767bbbde44cc61546520195cf6 /rust/helpers/task.c | |
parent | fcd4904e2f6908d5c255fa5818bcf8ad32a6f0e8 (diff) | |
download | linux-c6a90fe7f080d71271b723490454cfda1f81e4b0.tar.gz linux-c6a90fe7f080d71271b723490454cfda1f81e4b0.tar.bz2 linux-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) <willy@infradead.org>
Link: https://lore.kernel.org/r/20241005182307.3190401-3-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions