Lines Matching refs:old_counts
2068 struct bitmap_counts old_counts; in md_bitmap_resize() local
2148 old_counts = bitmap->counts; in md_bitmap_resize()
2157 blocks = min(old_counts.chunks << old_counts.chunkshift, in md_bitmap_resize()
2175 bitmap->counts.bp = old_counts.bp; in md_bitmap_resize()
2176 bitmap->counts.pages = old_counts.pages; in md_bitmap_resize()
2177 bitmap->counts.missing_pages = old_counts.pages; in md_bitmap_resize()
2178 bitmap->counts.chunkshift = old_counts.chunkshift; in md_bitmap_resize()
2179 bitmap->counts.chunks = old_counts.chunks; in md_bitmap_resize()
2181 1UL << (old_counts.chunkshift + BITMAP_BLOCK_SHIFT); in md_bitmap_resize()
2182 blocks = old_counts.chunks << old_counts.chunkshift; in md_bitmap_resize()
2194 bmc_old = md_bitmap_get_counter(&old_counts, block, &old_blocks, 0); in md_bitmap_resize()
2222 if (bitmap->counts.bp != old_counts.bp) { in md_bitmap_resize()
2224 for (k = 0; k < old_counts.pages; k++) in md_bitmap_resize()
2225 if (!old_counts.bp[k].hijacked) in md_bitmap_resize()
2226 kfree(old_counts.bp[k].map); in md_bitmap_resize()
2227 kfree(old_counts.bp); in md_bitmap_resize()