The following functions do special handling for RAID56 chunks:
- btrfs_is_parity_mirror()
  Check if the range is in RAID56 chunks.
- btrfs_full_stripe_len()
  Either return sectorsize for non-RAID56 profiles or full stripe length
  for RAID56 chunks.
But if a filesystem without any RAID56 chunks, it will not have RAID56
incompat flags, and we can skip the chunk tree looking up completely.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
        struct map_lookup *map;
        unsigned long len = fs_info->sectorsize;
 
+       if (!btrfs_fs_incompat(fs_info, RAID56))
+               return len;
+
        em = btrfs_get_chunk_map(fs_info, logical, len);
 
        if (!WARN_ON(IS_ERR(em))) {
        struct map_lookup *map;
        int ret = 0;
 
+       if (!btrfs_fs_incompat(fs_info, RAID56))
+               return 0;
+
        em = btrfs_get_chunk_map(fs_info, logical, len);
 
        if(!WARN_ON(IS_ERR(em))) {