Searched refs:BM_BLOCK_SIZE (Results 1 - 3 of 3) sorted by relevance

/linux-master/drivers/block/drbd/
H A Ddrbd_worker.c562 device->c_sync_rate = number * HZ * (BM_BLOCK_SIZE / 1024) / SLEEP_TIME;
565 number = SLEEP_TIME * device->c_sync_rate / ((BM_BLOCK_SIZE / 1024) * HZ);
575 /* note that "number" is in units of "BM_BLOCK_SIZE" (which is 4k),
647 size = BM_BLOCK_SIZE;
669 #if DRBD_MAX_BIO_SIZE > BM_BLOCK_SIZE
679 if (size + BM_BLOCK_SIZE > max_bio_size)
700 size += BM_BLOCK_SIZE;
701 if ((BM_BLOCK_SIZE << align) <= size)
707 if (size > BM_BLOCK_SIZE)
792 size = BM_BLOCK_SIZE;
[all...]
H A Ddrbd_main.c2991 u32 bm_bytes_per_bit; /* BM_BLOCK_SIZE */
3020 buffer->bm_bytes_per_bit = cpu_to_be32(BM_BLOCK_SIZE);
3262 if (be32_to_cpu(buffer->bm_bytes_per_bit) != BM_BLOCK_SIZE) {
3264 be32_to_cpu(buffer->bm_bytes_per_bit), BM_BLOCK_SIZE);
H A Ddrbd_int.h817 /* blocks to resync in this run [unit BM_BLOCK_SIZE] */
825 /* skipped because csum was equal [unit BM_BLOCK_SIZE] */
829 /* block not up-to-date at mark [unit BM_BLOCK_SIZE] */
1185 #define BM_BLOCK_SIZE (1<<BM_BLOCK_SHIFT) macro
1231 #define BM_WORDS_PER_EXT ( (AL_EXT_SIZE/BM_BLOCK_SIZE) / BITS_PER_LONG )
1232 #define BM_BYTES_PER_EXT ( (AL_EXT_SIZE/BM_BLOCK_SIZE) / 8 ) // 128

Completed in 364 milliseconds