Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f4791f4 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

Btrfs: noinline merge_extent_mapping



In order to debug subtle bugs around merge_extent_mapping(), perf probe
can be used to check the arguments, but sometimes merge_extent_mapping()
got inlined by compiler and couldn't be probed.

This is adding noinline attribute to merge_extent_mapping().

Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9a7e10e7
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -480,7 +480,7 @@ static struct extent_map *prev_extent_map(struct extent_map *em)
 * and an extent that you want to insert, deal with overlap and insert
 * and an extent that you want to insert, deal with overlap and insert
 * the best fitted new extent into the tree.
 * the best fitted new extent into the tree.
 */
 */
static int merge_extent_mapping(struct extent_map_tree *em_tree,
static noinline int merge_extent_mapping(struct extent_map_tree *em_tree,
					 struct extent_map *existing,
					 struct extent_map *existing,
					 struct extent_map *em,
					 struct extent_map *em,
					 u64 map_start)
					 u64 map_start)