]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: noinline btrfs_should_cancel_balance
authorJosef Bacik <josef@toxicpanda.com>
Wed, 16 Dec 2020 16:18:45 +0000 (11:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:50 +0000 (22:58 +0100)
commit6ea74812d8a53012c970796c61b961e252d79481
tree1758228bd608060d3bbaa3167806c029bad8f21a
parentfbfc42ff8c174cd2056c1c0919990d2571b1eef4
btrfs: noinline btrfs_should_cancel_balance

I was attempting to reproduce a problem that Zygo hit, but my error
injection wasn't firing for a few of the common calls to
btrfs_should_cancel_balance.  This is because the compiler decided to
inline it at these spots.  Keep this from happening by explicitly
marking the function as noinline so that error injection will always
work.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c