aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/delayed-ref.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-03-21 11:13:42 +0000
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:18 +0200
commit3a49a5489490acec43c66ad9db62f090af9d9f73 (patch)
tree5cdf77189c38b394b3af90b0b30a9196c85b3482 /fs/btrfs/delayed-ref.h
parent9d0d47d5c3c5b53d444ecf7022bedc5553c544c0 (diff)
btrfs: initialize ret to -ENOSPC at __reserve_bytes()
At space-info.c:__reserve_bytes(), instead of initializing 'ret' to 0 when it's declared and then shortly after set it to -ENOSPC under the space info's spinlock, initialize it to -ENOSPC when declaring it. Reviewed-by: Josef Bacik <josef@toxicpanda.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 'fs/btrfs/delayed-ref.h')
0 files changed, 0 insertions, 0 deletions