virtio_fs.c (fc496dcd935c23a0b4425e34f82c2ec33c2893f6) virtio_fs.c (6c85d6b653caeba2ef982925703cbb4f2b3b3163)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * virtio-fs: Virtio Filesystem
4 * Copyright (C) 2018 Red Hat, Inc.
5 */
6
7#include <linux/fs.h>
8#include <linux/dax.h>

--- 822 unchanged lines hidden (view full) ---

831 char vq_name[VQ_NAME_LEN];
832
833 snprintf(vq_name, VQ_NAME_LEN, "requests.%u", i - VQ_REQUEST);
834 virtio_fs_init_vq(&fs->vqs[i], vq_name, VQ_REQUEST);
835 vqs_info[i].callback = virtio_fs_vq_done;
836 vqs_info[i].name = fs->vqs[i].name;
837 }
838
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * virtio-fs: Virtio Filesystem
4 * Copyright (C) 2018 Red Hat, Inc.
5 */
6
7#include <linux/fs.h>
8#include <linux/dax.h>

--- 822 unchanged lines hidden (view full) ---

831 char vq_name[VQ_NAME_LEN];
832
833 snprintf(vq_name, VQ_NAME_LEN, "requests.%u", i - VQ_REQUEST);
834 virtio_fs_init_vq(&fs->vqs[i], vq_name, VQ_REQUEST);
835 vqs_info[i].callback = virtio_fs_vq_done;
836 vqs_info[i].name = fs->vqs[i].name;
837 }
838
839 ret = virtio_find_vqs_info(vdev, fs->nvqs, vqs, vqs_info, &desc);
839 ret = virtio_find_vqs(vdev, fs->nvqs, vqs, vqs_info, &desc);
840 if (ret < 0)
841 goto out;
842
843 for (i = 0; i < fs->nvqs; i++)
844 fs->vqs[i].vq = vqs[i];
845
846 virtio_fs_start_all_queues(fs);
847out:

--- 851 unchanged lines hidden ---
840 if (ret < 0)
841 goto out;
842
843 for (i = 0; i < fs->nvqs; i++)
844 fs->vqs[i].vq = vqs[i];
845
846 virtio_fs_start_all_queues(fs);
847out:

--- 851 unchanged lines hidden ---