]> 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)
commit1e208346a85ffb38c707802ab1fcefdd9de5a58a
tree027f98e9d86a03a53c41fb3c34878c6f12457dc8
parentdc57fe9d7b3781f82628ec0d8c0da5417b246280
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