Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxx> Fixes: 102a7e2c598c ("netfs: Allow buffered shared-writeable mmap through netfs_page_mkwrite()") Acked-by: David Howells <dhowells@xxxxxxxxxx>