Lines Matching refs:blocks

1185 					    sector_t offset, sector_t *blocks,
1198 sector_t blocks; in bitmap_daemon_work() local
1266 &blocks, 0); in bitmap_daemon_work()
1315 sector_t offset, sector_t *blocks, in bitmap_get_counter() argument
1338 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
1373 sector_t blocks; in bitmap_startwrite() local
1377 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 1); in bitmap_startwrite()
1410 offset += blocks; in bitmap_startwrite()
1411 if (sectors > blocks) in bitmap_startwrite()
1412 sectors -= blocks; in bitmap_startwrite()
1434 sector_t blocks; in bitmap_endwrite() local
1439 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 0); in bitmap_endwrite()
1464 offset += blocks; in bitmap_endwrite()
1465 if (sectors > blocks) in bitmap_endwrite()
1466 sectors -= blocks; in bitmap_endwrite()
1473 static int __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, in __bitmap_start_sync() argument
1479 *blocks = 1024; in __bitmap_start_sync()
1483 bmc = bitmap_get_counter(&bitmap->counts, offset, blocks, 0); in __bitmap_start_sync()
1501 int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, in bitmap_start_sync() argument
1514 *blocks = 0; in bitmap_start_sync()
1515 while (*blocks < (PAGE_SIZE>>9)) { in bitmap_start_sync()
1519 *blocks += blocks1; in bitmap_start_sync()
1525 void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted) in bitmap_end_sync() argument
1531 *blocks = 1024; in bitmap_end_sync()
1535 bmc = bitmap_get_counter(&bitmap->counts, offset, blocks, 0); in bitmap_end_sync()
1563 sector_t blocks; in bitmap_close_sync() local
1567 bitmap_end_sync(bitmap, sector, &blocks, 0); in bitmap_close_sync()
1568 sector += blocks; in bitmap_close_sync()
1576 sector_t blocks; in bitmap_cond_end_sync() local
1595 bitmap_end_sync(bitmap, s, &blocks, 0); in bitmap_cond_end_sync()
1596 s += blocks; in bitmap_cond_end_sync()
1734 sector_t blocks = mddev->resync_max_sectors; in bitmap_create() local
1795 err = bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1); in bitmap_create()
1828 sector_t blocks; in bitmap_load() local
1829 bitmap_start_sync(bitmap, sector, &blocks, 0); in bitmap_load()
1830 sector += blocks; in bitmap_load()
1940 int bitmap_resize(struct bitmap *bitmap, sector_t blocks, in bitmap_resize() argument
1985 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in bitmap_resize()
1993 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in bitmap_resize()
2034 blocks = min(old_counts.chunks << old_counts.chunkshift, in bitmap_resize()
2038 for (block = 0; block < blocks; ) { in bitmap_resize()