Lines Matching refs:blocks

1186 					    sector_t offset, sector_t *blocks,
1199 sector_t blocks; in bitmap_daemon_work() local
1267 &blocks, 0); in bitmap_daemon_work()
1316 sector_t offset, sector_t *blocks, in bitmap_get_counter() argument
1339 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
1374 sector_t blocks; in bitmap_startwrite() local
1378 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 1); in bitmap_startwrite()
1411 offset += blocks; in bitmap_startwrite()
1412 if (sectors > blocks) in bitmap_startwrite()
1413 sectors -= blocks; in bitmap_startwrite()
1435 sector_t blocks; in bitmap_endwrite() local
1440 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 0); in bitmap_endwrite()
1465 offset += blocks; in bitmap_endwrite()
1466 if (sectors > blocks) in bitmap_endwrite()
1467 sectors -= blocks; in bitmap_endwrite()
1474 static int __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, in __bitmap_start_sync() argument
1480 *blocks = 1024; in __bitmap_start_sync()
1484 bmc = bitmap_get_counter(&bitmap->counts, offset, blocks, 0); in __bitmap_start_sync()
1502 int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, in bitmap_start_sync() argument
1515 *blocks = 0; in bitmap_start_sync()
1516 while (*blocks < (PAGE_SIZE>>9)) { in bitmap_start_sync()
1520 *blocks += blocks1; in bitmap_start_sync()
1526 void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted) in bitmap_end_sync() argument
1532 *blocks = 1024; in bitmap_end_sync()
1536 bmc = bitmap_get_counter(&bitmap->counts, offset, blocks, 0); in bitmap_end_sync()
1564 sector_t blocks; in bitmap_close_sync() local
1568 bitmap_end_sync(bitmap, sector, &blocks, 0); in bitmap_close_sync()
1569 sector += blocks; in bitmap_close_sync()
1577 sector_t blocks; in bitmap_cond_end_sync() local
1596 bitmap_end_sync(bitmap, s, &blocks, 0); in bitmap_cond_end_sync()
1597 s += blocks; in bitmap_cond_end_sync()
1735 sector_t blocks = mddev->resync_max_sectors; in bitmap_create() local
1796 err = bitmap_resize(bitmap, blocks, mddev->bitmap_info.chunksize, 1); in bitmap_create()
1829 sector_t blocks; in bitmap_load() local
1830 bitmap_start_sync(bitmap, sector, &blocks, 0); in bitmap_load()
1831 sector += blocks; in bitmap_load()
1945 int bitmap_resize(struct bitmap *bitmap, sector_t blocks, in bitmap_resize() argument
1990 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in bitmap_resize()
1998 chunks = DIV_ROUND_UP_SECTOR_T(blocks, 1 << chunkshift); in bitmap_resize()
2039 blocks = min(old_counts.chunks << old_counts.chunkshift, in bitmap_resize()
2043 for (block = 0; block < blocks; ) { in bitmap_resize()