void force() throws IOException {
    myFile.getStorageLockContext().assertUnderSegmentAllocationLock();

    if (myFile.isReadOnly()) {
      throw new IllegalStateException("Can't flush .readOnly page: " + this);
    }
    if (isDirty()) {
      ByteBuffer buffer = myBuffer.duplicate();
      buffer.rewind();
      buffer.limit(myBufferDataEndPos);

      myFile.executeIdempotentOp(ch -> {
        ch.write(buffer, myPosition);
        return null;
      }, /*readOnly: */ false);

      myDirty = false;
    }
  }
void force()