> >> +bool btrfs_check_rw_degradable(struct btrfs_fs_info *fs_info) > >> +{ > >> + struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; > >> + struct extent_map *em; > >> + u64 next_start = 0; > >> + bool ret = true; > >> + > >> + read_lock(&map_tree->map_tree.lock); > >> + em = lookup_extent_mapping(&map_tree->map_tree, 0, (u64)-1); > >> + read_unlock(&map_tree->map_tree.lock); > >> + /* No chunk at all? Return false anyway */ > >> + if (!em) { > >> + ret = false; > >> + goto out; > >> + } > >> + while (em) { > >> + struct map_lookup *map; > >> + int missing = 0; > >> + int max_tolerated; > >> + int i; > >> + > >> + map = (struct map_lookup *) em->bdev; > > > > > > any idea why not map = em->map_lookup; here? > > > My fault, will update the patch. > > Thanks, > Qu
Sorry to bother, but looks like this patchset suddenly got forgotten. It still applies to 4.11 but I'm afraid it won't after 4.12 merge window. Any update on it? -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html