btrfs: add assertion helpers for spinning writers
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 12:45:20 +0000 (14:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:20 +0000 (19:02 +0200)
commite4e9fd0f326212ee3971418334c255a26c8a2735
tree85adca2f3c207cb4ed06d1c46e8a11eb350fc0b5
parent8882679ea50b9ceb8b86cbceb061322a97876534
btrfs: add assertion helpers for spinning writers

Add helpers for conditional DEBUG build to assert that the extent buffer
spinning_writers 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