Lines Matching refs:nsh
2550 struct stripe_head *osh, *nsh; in resize_stripes() local
2571 nsh = alloc_stripe(sc, GFP_KERNEL, newsize, conf); in resize_stripes()
2572 if (!nsh) in resize_stripes()
2575 list_add(&nsh->lru, &newstripes); in resize_stripes()
2580 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2581 list_del(&nsh->lru); in resize_stripes()
2582 free_stripe(sc, nsh); in resize_stripes()
2594 list_for_each_entry(nsh, &newstripes, lru) { in resize_stripes()
2605 nsh->pages[i] = osh->pages[i]; in resize_stripes()
2610 nsh->dev[i].page = osh->dev[i].page; in resize_stripes()
2611 nsh->dev[i].orig_page = osh->dev[i].page; in resize_stripes()
2612 nsh->dev[i].offset = osh->dev[i].offset; in resize_stripes()
2614 nsh->hash_lock_index = hash; in resize_stripes()
2658 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2659 list_del_init(&nsh->lru); in resize_stripes()
2662 for (i = 0; i < nsh->nr_pages; i++) { in resize_stripes()
2663 if (nsh->pages[i]) in resize_stripes()
2665 nsh->pages[i] = alloc_page(GFP_NOIO); in resize_stripes()
2666 if (!nsh->pages[i]) in resize_stripes()
2671 if (nsh->dev[i].page) in resize_stripes()
2673 nsh->dev[i].page = raid5_get_dev_page(nsh, i); in resize_stripes()
2674 nsh->dev[i].orig_page = nsh->dev[i].page; in resize_stripes()
2675 nsh->dev[i].offset = raid5_get_page_offset(nsh, i); in resize_stripes()
2679 if (nsh->dev[i].page == NULL) { in resize_stripes()
2681 nsh->dev[i].page = p; in resize_stripes()
2682 nsh->dev[i].orig_page = p; in resize_stripes()
2683 nsh->dev[i].offset = 0; in resize_stripes()
2688 raid5_release_stripe(nsh); in resize_stripes()