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

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