]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add 'cold' compiler annotations to all error handling functions
authorDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 17:11:57 +0000 (19:11 +0200)
committerChris Mason <clm@fb.com>
Wed, 3 Jun 2015 02:34:34 +0000 (19:34 -0700)
commit4f0de46cb4b1c50cf07c916a84d2eac92bc29ab0
tree027f98e9d86a03a53c41fb3c34878c6f12457dc8
parentecdf0daa84e0aa0f7c4e13115b7547b8dd4b2433
btrfs: add 'cold' compiler annotations to all error handling functions

The annotated functios will be placed into .text.unlikely section. The
annotation also hints compiler to move the code out of the hot paths,
and may implicitly mark if-statement leading to that block as unlikely.

This is a heuristic, the impact on the generated code is not
significant.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/super.c