summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov2018-05-04 09:53:05 +0200
committerDavid Sterba2018-05-28 18:07:29 +0200
commit63a9c7b9ceaad9b2d8bd482abd44e2068b828b00 (patch)
tree56a51ef0be136bed7f0a25675c82e558ecc7d059 /fs/btrfs/volumes.c
parentbtrfs: trace: Allow trace_qgroup_update_counters() to record old rfer/excl value (diff)
downloadkernel-qcow2-linux-63a9c7b9ceaad9b2d8bd482abd44e2068b828b00.tar.gz
kernel-qcow2-linux-63a9c7b9ceaad9b2d8bd482abd44e2068b828b00.tar.xz
kernel-qcow2-linux-63a9c7b9ceaad9b2d8bd482abd44e2068b828b00.zip
btrfs: Remove devid parameter from btrfs_rmap_block
This function is used in only one place and devid argument is always passed 0. So just remove it, similarly to how it was removed in the userspace code. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 78f6cd1de33a..45227c83b742 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -5975,9 +5975,8 @@ int btrfs_map_sblock(struct btrfs_fs_info *fs_info, enum btrfs_map_op op,
return __btrfs_map_block(fs_info, op, logical, length, bbio_ret, 0, 1);
}
-int btrfs_rmap_block(struct btrfs_fs_info *fs_info,
- u64 chunk_start, u64 physical, u64 devid,
- u64 **logical, int *naddrs, int *stripe_len)
+int btrfs_rmap_block(struct btrfs_fs_info *fs_info, u64 chunk_start,
+ u64 physical, u64 **logical, int *naddrs, int *stripe_len)
{
struct extent_map *em;
struct map_lookup *map;
@@ -6009,8 +6008,6 @@ int btrfs_rmap_block(struct btrfs_fs_info *fs_info,
BUG_ON(!buf); /* -ENOMEM */
for (i = 0; i < map->num_stripes; i++) {
- if (devid && map->stripes[i].dev->devid != devid)
- continue;
if (map->stripes[i].physical > physical ||
map->stripes[i].physical + length <= physical)
continue;