diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2018-01-05 12:51:16 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:38 +0200 |
commit | 393da91819e35af538ef97c7c6a04899e2fbfe0e (patch) | |
tree | 9a81e6d1a4aa4fb32a876098f0121f38bf726987 /fs/btrfs/extent_map.c | |
parent | 5d23515be66904fa3b1b5d6bd72d2199cd2447ab (diff) | |
download | linux-393da91819e35af538ef97c7c6a04899e2fbfe0e.tar.bz2 |
Btrfs: add tracepoint for em's EEXIST case
This is adding a tracepoint 'btrfs_handle_em_exist' to help debug the
subtle bugs around merge_extent_mapping.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index c80dea7c69af..b8ead8dc2ebe 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -551,6 +551,9 @@ int btrfs_add_extent_mapping(struct extent_map_tree *em_tree, ret = 0; existing = search_extent_mapping(em_tree, start, len); + + trace_btrfs_handle_em_exist(existing, em, start, len); + /* * existing will always be non-NULL, since there must be * extent causing the -EEXIST. |