Lines Matching refs:wo
1428 max_allowed_wo(struct drbd_backing_dev *bdev, enum write_ordering_e wo) in max_allowed_wo() argument
1434 if (wo == WO_BDEV_FLUSH && !dc->disk_flushes) in max_allowed_wo()
1435 wo = WO_DRAIN_IO; in max_allowed_wo()
1436 if (wo == WO_DRAIN_IO && !dc->disk_drain) in max_allowed_wo()
1437 wo = WO_NONE; in max_allowed_wo()
1439 return wo; in max_allowed_wo()
1447 enum write_ordering_e wo) in drbd_bump_write_ordering() argument
1459 if (wo != WO_BDEV_FLUSH) in drbd_bump_write_ordering()
1460 wo = min(pwo, wo); in drbd_bump_write_ordering()
1464 wo = max_allowed_wo(device->ldev, wo); in drbd_bump_write_ordering()
1472 wo = max_allowed_wo(bdev, wo); in drbd_bump_write_ordering()
1476 resource->write_ordering = wo; in drbd_bump_write_ordering()
1477 if (pwo != resource->write_ordering || wo == WO_BDEV_FLUSH) in drbd_bump_write_ordering()