]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f93bf983b116896574f5e55dc102844cf26d6d3
tree6cd5a503bd2492124fe8fe4a463f5953d658df47
parentd48f29085c9cc1ea327b2e5d561112b2fa3c2d46
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