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()
846 int __drbd_change_sync(struct drbd_device *device, sector_t sector, int size, in __drbd_change_sync() argument
861 (unsigned long long)sector, size); in __drbd_change_sync()
869 esector = sector + (size >> 9) - 1; in __drbd_change_sync()
871 if (!expect(sector < nr_sectors)) in __drbd_change_sync()
887 sbnr = BM_SECT_TO_BIT(sector + BM_SECT_PER_BIT-1); in __drbd_change_sync()
891 sbnr = BM_SECT_TO_BIT(sector); in __drbd_change_sync()
960 int drbd_rs_begin_io(struct drbd_device *device, sector_t sector) in drbd_rs_begin_io() argument
962 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_begin_io()
1012 int drbd_try_rs_begin_io(struct drbd_device *device, sector_t sector) in drbd_try_rs_begin_io() argument
1014 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_try_rs_begin_io()
1019 bool throttle = drbd_rs_should_slow_down(device, sector, true); in drbd_try_rs_begin_io()
1134 void drbd_rs_complete_io(struct drbd_device *device, sector_t sector) in drbd_rs_complete_io() argument
1136 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_complete_io()
1155 (unsigned long long)sector, enr); in drbd_rs_complete_io()