• Home
  • Raw
  • Download

Lines Matching refs:blocks

1072 					    sector_t offset, int *blocks,
1085 int blocks; in bitmap_daemon_work() local
1157 &blocks, 0); in bitmap_daemon_work()
1205 sector_t offset, int *blocks, in bitmap_get_counter() argument
1219 *blocks = csize - (offset & (csize- 1)); in bitmap_get_counter()
1230 *blocks = csize - (offset & (csize- 1)); in bitmap_get_counter()
1235 *blocks = csize - (offset & (csize- 1)); in bitmap_get_counter()
1252 int blocks; in bitmap_startwrite() local
1256 bmc = bitmap_get_counter(bitmap, offset, &blocks, 1); in bitmap_startwrite()
1291 offset += blocks; in bitmap_startwrite()
1292 if (sectors > blocks) in bitmap_startwrite()
1293 sectors -= blocks; in bitmap_startwrite()
1311 int blocks; in bitmap_endwrite() local
1316 bmc = bitmap_get_counter(bitmap, offset, &blocks, 0); in bitmap_endwrite()
1341 offset += blocks; in bitmap_endwrite()
1342 if (sectors > blocks) in bitmap_endwrite()
1343 sectors -= blocks; in bitmap_endwrite()
1348 int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, int *blocks, in bitmap_start_sync() argument
1354 *blocks = 1024; in bitmap_start_sync()
1358 bmc = bitmap_get_counter(bitmap, offset, blocks, 0); in bitmap_start_sync()
1377 void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int aborted) in bitmap_end_sync() argument
1384 *blocks = 1024; in bitmap_end_sync()
1388 bmc = bitmap_get_counter(bitmap, offset, blocks, 0); in bitmap_end_sync()
1420 int blocks; in bitmap_close_sync() local
1424 bitmap_end_sync(bitmap, sector, &blocks, 0); in bitmap_close_sync()
1425 sector += blocks; in bitmap_close_sync()
1432 int blocks; in bitmap_cond_end_sync() local
1449 bitmap_end_sync(bitmap, s, &blocks, 0); in bitmap_cond_end_sync()
1450 s += blocks; in bitmap_cond_end_sync()
1563 unsigned long blocks = mddev->resync_max_sectors; in bitmap_create() local
1605 chunks = (blocks + CHUNK_BLOCK_RATIO(bitmap) - 1) / in bitmap_create()