Lines Matching refs:old_counts
2138 struct bitmap_counts old_counts; in md_bitmap_resize() local
2218 old_counts = bitmap->counts; in md_bitmap_resize()
2227 blocks = min(old_counts.chunks << old_counts.chunkshift, in md_bitmap_resize()
2245 bitmap->counts.bp = old_counts.bp; in md_bitmap_resize()
2246 bitmap->counts.pages = old_counts.pages; in md_bitmap_resize()
2247 bitmap->counts.missing_pages = old_counts.pages; in md_bitmap_resize()
2248 bitmap->counts.chunkshift = old_counts.chunkshift; in md_bitmap_resize()
2249 bitmap->counts.chunks = old_counts.chunks; in md_bitmap_resize()
2251 1UL << (old_counts.chunkshift + BITMAP_BLOCK_SHIFT); in md_bitmap_resize()
2252 blocks = old_counts.chunks << old_counts.chunkshift; in md_bitmap_resize()
2264 bmc_old = md_bitmap_get_counter(&old_counts, block, &old_blocks, 0); in md_bitmap_resize()
2292 if (bitmap->counts.bp != old_counts.bp) { in md_bitmap_resize()
2294 for (k = 0; k < old_counts.pages; k++) in md_bitmap_resize()
2295 if (!old_counts.bp[k].hijacked) in md_bitmap_resize()
2296 kfree(old_counts.bp[k].map); in md_bitmap_resize()
2297 kfree(old_counts.bp); in md_bitmap_resize()