diff options
| author | Filipe Manana <[email protected]> | 2025-05-14 11:24:25 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 16:24:44 +0000 |
| commit | 1ce06d45d92242ffd9c576b736e1e755531fe6dd (patch) | |
| tree | b495182a3c569a17fec71691424e10779d335e3d /rust/helpers/mutex.c | |
| parent | btrfs: don't return VM_FAULT_SIGBUS on failure to set delalloc for mmap write (diff) | |
| download | kernel-1ce06d45d92242ffd9c576b736e1e755531fe6dd.tar.gz kernel-1ce06d45d92242ffd9c576b736e1e755531fe6dd.zip | |
btrfs: use a single variable to track return value at btrfs_page_mkwrite()
We have two variables to track return values, ret and ret2, with types
vm_fault_t (an unsigned int type) and int, which makes it a bit confusing
and harder to keep track. So use a single variable, of type int, and under
the 'out' label return vmf_error(ret) in case ret contains an error,
otherwise return VM_FAULT_NOPAGE. This is equivalent to what we had before
and it's simpler.
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
