diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-01-20 10:11:43 +0300 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-01-22 05:06:49 +0300 |
commit | 10f11900167a83e0c229c4c27e73e720ebd55b5c (patch) | |
tree | ab1a3b7bd34f51ea09ef505ed518423332f53a99 /fs/btrfs/volumes.h | |
parent | be50a8ddaae1d07135fd7e1c7017c1611075a560 (diff) | |
download | linux-10f11900167a83e0c229c4c27e73e720ebd55b5c.tar.xz |
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.h')
-rw-r--r-- | fs/btrfs/volumes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 4313e8ff91e5..83069dec6898 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -298,6 +298,7 @@ struct btrfs_bio { atomic_t refs; atomic_t stripes_pending; struct btrfs_fs_info *fs_info; + u64 map_type; /* get from map_lookup->type */ bio_end_io_t *end_io; struct bio *orig_bio; unsigned long flags; |