diff options
author | 2025-05-14 12:24:25 +0100 | |
---|---|---|
committer | 2025-05-15 18:24:44 +0200 | |
commit | 1ce06d45d92242ffd9c576b736e1e755531fe6dd (patch) | |
tree | b495182a3c569a17fec71691424e10779d335e3d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | btrfs: don't return VM_FAULT_SIGBUS on failure to set delalloc for mmap write (diff) | |
download | wireguard-linux-1ce06d45d92242ffd9c576b736e1e755531fe6dd.tar.xz wireguard-linux-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 <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions