Home
last modified time | relevance | path

Searched refs:BM_BLOCK_SHIFT (Results 1 – 7 of 7) sorted by relevance

/drivers/block/drbd/
Ddrbd_int.h1182 #define BM_BLOCK_SHIFT 12 /* 4k per bit */ macro
1183 #define BM_BLOCK_SIZE (1<<BM_BLOCK_SHIFT)
1190 #if (BM_EXT_SHIFT != 24) || (BM_BLOCK_SHIFT != 12)
1195 #define BM_SECT_TO_BIT(x) ((x)>>(BM_BLOCK_SHIFT-9))
1196 #define BM_BIT_TO_SECT(x) ((sector_t)(x)<<(BM_BLOCK_SHIFT-9))
1200 #define Bit2KB(bits) ((bits)<<(BM_BLOCK_SHIFT-10))
1205 #define BM_BIT_TO_EXT(x) ((x) >> (BM_EXT_SHIFT - BM_BLOCK_SHIFT))
1212 #define BM_BITS_PER_EXT (1UL << (BM_EXT_SHIFT - BM_BLOCK_SHIFT))
Ddrbd_proc.c117 if (rs_total > (4UL << (30 - BM_BLOCK_SHIFT))) in drbd_syncer_progress()
Ddrbd_worker.c561 number = drbd_rs_controller(peer_device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()
759 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_resync_request()
812 device->rs_in_flight += (i << (BM_BLOCK_SHIFT - 9)); in make_ov_request()
1208 device->rs_same_csum += peer_req->i.size >> BM_BLOCK_SHIFT; in w_e_end_csum_rs_req()
1860 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10), in drbd_start_resync()
Ddrbd_actlog.c280 #if (PAGE_SHIFT + 3) < (AL_EXTENT_SHIFT - BM_BLOCK_SHIFT)
295 (AL_EXTENT_SHIFT - BM_BLOCK_SHIFT)); in al_extent_to_bm_page()
Ddrbd_bitmap.c334 #define S2W(s) ((s)<<(BM_EXT_SHIFT-BM_BLOCK_SHIFT-LN2_BPL))
1207 ppsize(ppb, now << (BM_BLOCK_SHIFT-10)), now); in bm_rw()
Ddrbd_nl.c3579 s->peer_dev_out_of_sync = drbd_bm_total_weight(device) << (BM_BLOCK_SHIFT - 9); in peer_device_to_statistics()
3580 s->peer_dev_resync_failed = device->rs_failed << (BM_BLOCK_SHIFT - 9); in peer_device_to_statistics()
Ddrbd_receiver.c5655 device->rs_same_csum += (blksize >> BM_BLOCK_SHIFT); in got_IsInSync()