Re: [PATCH] btrfs: remove warnings superseded by refcount_t usage

2018-07-05 Thread David Sterba
On Fri, Jun 29, 2018 at 04:05:40PM +0200, David Sterba wrote: > On Tue, Jun 26, 2018 at 05:00:46PM +0300, Nikolay Borisov wrote: > > On 25.06.2018 19:38, David Sterba wrote: > > > There are several WARN_ON calls that catch incrorrect reference counter > > > updates, but this is what the refcount_t

Re: [PATCH] btrfs: remove warnings superseded by refcount_t usage

2018-06-29 Thread David Sterba
On Tue, Jun 26, 2018 at 05:00:46PM +0300, Nikolay Borisov wrote: > On 25.06.2018 19:38, David Sterba wrote: > > There are several WARN_ON calls that catch incrorrect reference counter > > updates, but this is what the refcount_t does already: > > > > * refcount_inc from 0 will warn > > *

Re: [PATCH] btrfs: remove warnings superseded by refcount_t usage

2018-06-26 Thread Nikolay Borisov
On 25.06.2018 19:38, David Sterba wrote: > There are several WARN_ON calls that catch incrorrect reference counter > updates, but this is what the refcount_t does already: > > * refcount_inc from 0 will warn > * refcount_dec_and_test from 0 will warn > But these warnings are only going to be

[PATCH] btrfs: remove warnings superseded by refcount_t usage

2018-06-25 Thread David Sterba
There are several WARN_ON calls that catch incrorrect reference counter updates, but this is what the refcount_t does already: * refcount_inc from 0 will warn * refcount_dec_and_test from 0 will warn Signed-off-by: David Sterba --- fs/btrfs/delayed-ref.h | 1 - fs/btrfs/extent_map.c | 2 +-