[Devel] [PATCH hci-8.1 v2 3/7] dm-qcow2: prepare process_one_qio() for fastpath
Alexander Ivanov
alexander.ivanov at virtuozzo.com
Wed Nov 11 17:36:59 MSK 2026
> -static void process_one_qio(struct qcow2 *qcow2, struct qio *qio)
> +static int process_one_qio(struct qcow2 *qcow2, struct qio *qio, bool avoid_metadata_changes)
> {
> struct qcow2_map map = { .qcow2 = qcow2, };
> bool write;
> + int ret;
>
> - if (!handle_metadata(qcow2, &qio, &map))
> - return;
> + ret = handle_metadata(qcow2, &qio, &map, avoid_metadata_changes);
> + if (!ret)
> + return 0;
> + else if (ret == QIO_NEEDS_MAIN_KWORK)
"else" here is redundant.
More information about the Devel
mailing list