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 > > * refcount_dec_and_test from 0 will warn > > > > But these warnings are only going to be triggered in the case of > CONFIG_REFCOUNT_FULL otherwise refcount falls back to plain atomic > operations.
Right, I'm for REFCOUNT_FULL on by default obviously, but we need to take handle the case where it's not. And there isn't a refcount type with the full semantics. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html