aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-05-14 11:18:07 +0000
committerDavid Sterba <[email protected]>2025-05-15 16:24:37 +0000
commitd8cddf2a1d71ab9dea59822ccb9bbb780f50ce0a (patch)
tree98a20737cd657d3f16742be67e394a7154d93016 /rust/helpers/mutex.c
parentbtrfs: simplify early error checking in btrfs_page_mkwrite() (diff)
downloadkernel-d8cddf2a1d71ab9dea59822ccb9bbb780f50ce0a.tar.gz
kernel-d8cddf2a1d71ab9dea59822ccb9bbb780f50ce0a.zip
btrfs: don't return VM_FAULT_SIGBUS on failure to set delalloc for mmap write
If the call to btrfs_set_extent_delalloc() fails we are always returning VM_FAULT_SIGBUS, which is odd since the error means "bad access" and the most likely cause for btrfs_set_extent_delalloc() is -ENOMEM, which should be translated to VM_FAULT_OOM. Instead of returning VM_FAULT_SIGBUS return vmf_error(ret2), which gives us a more appropriate return value, and we use that everywhere else too. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions