OSDN Git Service

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)
commitd6156218bec93965b6a43ba2686ad962ce77c854
tree8aaa602f7f23bc738dafa3ebf27ca4c392442726
parentc9eb55db8439057165f106164622c146cdd59468
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