Lines Matching refs:sector

127 				 sector_t sector, enum req_op op)  in _drbd_md_sync_page_io()  argument
144 bio->bi_iter.bi_sector = sector; in _drbd_md_sync_page_io()
178 sector_t sector, enum req_op op) in drbd_md_sync_page_io() argument
187 (unsigned long long)sector, (op == REQ_OP_WRITE) ? "WRITE" : "READ", in drbd_md_sync_page_io()
190 if (sector < drbd_md_first_sector(bdev) || in drbd_md_sync_page_io()
191 sector + 7 > drbd_md_last_sector(bdev)) in drbd_md_sync_page_io()
194 (unsigned long long)sector, in drbd_md_sync_page_io()
197 err = _drbd_md_sync_page_io(device, bdev, sector, op); in drbd_md_sync_page_io()
200 (unsigned long long)sector, in drbd_md_sync_page_io()
245 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_fastpath()
246 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_fastpath()
262 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_prepare()
263 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_prepare()
319 sector_t sector; in __al_write_transaction() local
376 sector = al_tr_number_to_on_disk_sector(device); in __al_write_transaction()
389 if (drbd_md_sync_page_io(device, device->ldev, sector, REQ_OP_WRITE)) { in __al_write_transaction()
489 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_nonblock()
490 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9); in drbd_al_begin_io_nonblock()
548 unsigned first = i->sector >> (AL_EXTENT_SHIFT-9); in drbd_al_complete_io()
549 unsigned last = i->size == 0 ? first : (i->sector + (i->size >> 9) - 1) >> (AL_EXTENT_SHIFT-9); in drbd_al_complete_io()
847 int __drbd_change_sync(struct drbd_peer_device *peer_device, sector_t sector, int size, in __drbd_change_sync() argument
863 (unsigned long long)sector, size); in __drbd_change_sync()
871 esector = sector + (size >> 9) - 1; in __drbd_change_sync()
873 if (!expect(device, sector < nr_sectors)) in __drbd_change_sync()
889 sbnr = BM_SECT_TO_BIT(sector + BM_SECT_PER_BIT-1); in __drbd_change_sync()
893 sbnr = BM_SECT_TO_BIT(sector); in __drbd_change_sync()
962 int drbd_rs_begin_io(struct drbd_device *device, sector_t sector) in drbd_rs_begin_io() argument
964 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_begin_io()
1014 int drbd_try_rs_begin_io(struct drbd_peer_device *peer_device, sector_t sector) in drbd_try_rs_begin_io() argument
1017 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_try_rs_begin_io()
1022 bool throttle = drbd_rs_should_slow_down(peer_device, sector, true); in drbd_try_rs_begin_io()
1137 void drbd_rs_complete_io(struct drbd_device *device, sector_t sector) in drbd_rs_complete_io() argument
1139 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_complete_io()
1158 (unsigned long long)sector, enr); in drbd_rs_complete_io()