Re: [PATCH 1/2][v2] btrfs: convert block group refcount to refcount_t

David Sterba
2020-07-09T15:39:30Z

On Mon, Jul 06, 2020 at 09:14:11AM -0400, Josef Bacik wrote:
> We have refcount_t now with the associated library to handle refcounts,
> which gives us extra debugging around reference count mistakes that may
> be made. For example it'll warn on any transition from 0->1 or 0->-1,
> which is handy for noticing cases where we've messed up reference
> counting. Convert the block group ref counting from an atomic_t to
> refcount_t and use the appropriate helpers.
>
> Reviewed-by: Filipe Manana <fdmanana@suse.com>
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

1 and 2 added to msic-next, thanks.