]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use assertion helpers for spinning readers
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 13:57:38 +0000 (15:57 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:21 +0000 (19:02 +0200)
commitb2d8523e99e6b31faa00985a67099f9a4261534d
tree8196e1c261b761ac8e4bcec38ee896bb8ce538fd
parentfbc85d2cd9617386aac86c5e33f4e10d4d3e6f86
btrfs: use assertion helpers for spinning readers

Use the helpers where open coded. On non-debug builds, the warnings will
not trigger and extent_buffer::spining_readers 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