]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make locking assertion helpers static inline
authorDavid Sterba <dsterba@suse.com>
Tue, 24 Sep 2019 16:29:10 +0000 (18:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:49 +0000 (12:46 +0100)
commit3fbe69f72b2827eaecef2cc868ffe3c972c8166f
tree8aaa602f7f23bc738dafa3ebf27ca4c392442726
parent7e12e0cdea15b571d0ae73457e73c483a03278b9
btrfs: make locking assertion helpers static inline

I've noticed that none of the btrfs_assert_*lock* debugging helpers is
inlined, despite they're short and mostly a value update. Making them
inline shaves 67 from the text size, reduces stack consumption and
perhaps also slightly improves the performance due to avoiding
unnecessary calls.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/locking.c