Lines Matching refs:rw
140 sector_t sector, int rw) in _drbd_md_sync_page_io() argument
150 if ((rw & WRITE) && !test_bit(MD_NO_FUA, &device->flags)) in _drbd_md_sync_page_io()
151 rw |= REQ_FUA | REQ_FLUSH; in _drbd_md_sync_page_io()
152 rw |= REQ_SYNC | REQ_NOIDLE; in _drbd_md_sync_page_io()
162 bio->bi_rw = rw; in _drbd_md_sync_page_io()
164 if (!(rw & WRITE) && device->state.disk == D_DISKLESS && device->ldev == NULL) in _drbd_md_sync_page_io()
177 if (drbd_insert_fault(device, (rw & WRITE) ? DRBD_FAULT_MD_WR : DRBD_FAULT_MD_RD)) in _drbd_md_sync_page_io()
180 submit_bio(rw, bio); in _drbd_md_sync_page_io()
191 sector_t sector, int rw) in drbd_md_sync_page_io() argument
200 (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ", in drbd_md_sync_page_io()
207 (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ"); in drbd_md_sync_page_io()
209 err = _drbd_md_sync_page_io(device, bdev, sector, rw); in drbd_md_sync_page_io()
212 (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ", err); in drbd_md_sync_page_io()