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)
commitc0d19e2b9a521bbdc33049ad92c94b517afda1f0
tree027f98e9d86a03a53c41fb3c34878c6f12457dc8
parent1a9a8a71ed1d457d4f03284ebfd3e40fe1e217ac
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