Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b50fff81 authored by David Sterba's avatar David Sterba
Browse files

btrfs: switch to refcount_t type for btrfs_trans_handle::use_count



The use_count is a reference counter, we can use the refcount_t type,
though we don't use the atomicity. This is not a performance critical
code and we could catch the underflows. The type is changed from long,
but the number of references will fit an int.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2dbda74e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment