btrfs: use assertion helpers for spinning writers
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 12:56:28 +0000 (14:56 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:20 +0000 (19:02 +0200)
commit843ccf9f46baff289946e897b11fd813de62d06f
tree6cd5a503bd2492124fe8fe4a463f5953d658df47
parente4e9fd0f326212ee3971418334c255a26c8a2735
btrfs: use assertion helpers for spinning writers

Use the helpers where open coded. On non-debug builds, the warnings will
not trigger and extent_buffer::spining_writers become unused and can be
moved to the appropriate section, saving a few bytes.

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