commit | b50fff816cbd670ea545ce98ae374356f08f2d75 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Wed Nov 08 01:39:58 2017 +0100 |
committer | David Sterba <dsterba@suse.com> | Mon Jan 22 16:08:14 2018 +0100 |
tree | 583500f65c4a3b0db13963d7bec475c70dc8467c | |
parent | 2dbda74ed9e5497697b913c780c928e25e70d832 [diff] |
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: David Sterba <dsterba@suse.com>