summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorZhao Lei2015-01-20 08:11:43 +0100
committerChris Mason2015-01-22 03:06:49 +0100
commit10f11900167a83e0c229c4c27e73e720ebd55b5c (patch)
treeab1a3b7bd34f51ea09ef505ed518423332f53a99 /fs/btrfs/volumes.c
parentBtrfs: Simplify scrub_setup_recheck_block()'s argument (diff)
downloadkernel-qcow2-linux-10f11900167a83e0c229c4c27e73e720ebd55b5c.tar.gz
kernel-qcow2-linux-10f11900167a83e0c229c4c27e73e720ebd55b5c.tar.xz
kernel-qcow2-linux-10f11900167a83e0c229c4c27e73e720ebd55b5c.zip
Btrfs: Include map_type in raid_bio
Corrent code use many kinds of "clever" way to determine operation target's raid type, as: raid_map != NULL or raid_map[MAX_NR] == RAID[56]_Q_STRIPE To make code easy to maintenance, this patch put raid type into bbio, and we can always get raid type from bbio with a "stupid" way. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 0843bcd6304c..8933d70c3d53 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -5453,6 +5453,7 @@ static int __btrfs_map_block(struct btrfs_fs_info *fs_info, int rw,
}
*bbio_ret = bbio;
+ bbio->map_type = map->type;
bbio->num_stripes = num_stripes;
bbio->max_errors = max_errors;
bbio->mirror_num = mirror_num;