btrfs: add assertion helpers for spinning readers
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 13:53:42 +0000 (15:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:20 +0000 (19:02 +0200)
commit225948dedc9d3ac514eb1f4b7318d541cfd80aaf
treee59450535eebd25104b96a8e6cad956affb282ea
parent843ccf9f46baff289946e897b11fd813de62d06f
btrfs: add assertion helpers for spinning readers

Add helpers for conditional DEBUG build to assert that the extent buffer
spinning_readers constraints are met. Will be used in followup patches.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c