]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use assertion helpers for extent buffer read lock counters
authorDavid Sterba <dsterba@suse.com>
Fri, 24 Aug 2018 14:15:51 +0000 (16:15 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:21 +0000 (19:02 +0200)
commit7c1cbc782bb77d916b4e4d830dc12c468f711a53
treec419a5edcab793e6ed655ace2cb53649262be61e
parent522bf48764f1cea17dc8027de9b5ac0f4041133a
btrfs: use assertion helpers for extent buffer read lock counters

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