Lines Matching refs:raid_map
928 static void sort_parity_stripes(struct btrfs_multi_bio *bbio, u64 *raid_map) in sort_parity_stripes() argument
938 if (parity_smaller(raid_map[i], raid_map[i+1])) { in sort_parity_stripes()
940 l = raid_map[i]; in sort_parity_stripes()
942 raid_map[i] = raid_map[i+1]; in sort_parity_stripes()
944 raid_map[i+1] = l; in sort_parity_stripes()
961 u64 *raid_map = NULL; in __btrfs_map_block() local
1011 raid_map = kmalloc(sizeof(u64) * map->num_stripes, GFP_NOFS); in __btrfs_map_block()
1012 if (!raid_map) { in __btrfs_map_block()
1085 if (raid_map) { in __btrfs_map_block()
1109 raid_map[(i+rot) % map->num_stripes] = in __btrfs_map_block()
1112 raid_map[(i+rot) % map->num_stripes] = BTRFS_RAID5_P_STRIPE; in __btrfs_map_block()
1114 raid_map[(i+rot+1) % map->num_stripes] = BTRFS_RAID6_Q_STRIPE; in __btrfs_map_block()
1158 if (raid_map) { in __btrfs_map_block()
1159 sort_parity_stripes(multi, raid_map); in __btrfs_map_block()
1160 *raid_map_ret = raid_map; in __btrfs_map_block()