Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp744066iog; Wed, 15 Jun 2022 11:16:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1trm4bBYtxCZEk/2dUIb+LkdUu9Ax8Hc2a6/gtQ8OvjRzqjof8iOH26FJteknPUBu6rxNhc X-Received: by 2002:a05:6402:1341:b0:42a:f7cb:44dc with SMTP id y1-20020a056402134100b0042af7cb44dcmr1296593edw.165.1655316975968; Wed, 15 Jun 2022 11:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655316975; cv=none; d=google.com; s=arc-20160816; b=nKkPjlOCGCAu0HEL+MNxm/Hfjnexep5FKWPsa8tuiu2LfqYQs+fQhubRjWgn5HjtP3 soLnQ1bPN/nqb8Y0Y32NomZXi94b+QmcDcItr7MLnPxQqR9rRICwKjR/969PdlyMptd/ y5yvF81KfIirnyguA9ZE/1qdLYdK8cwG8F5g4W+h9pqgO5AAQJwfgNMTxcznQ8P4yUfv Y7pXEUl4I3Q1tHGky02svocDDImwVmRyu6eQFo1fZjHWHL9X0KitOEvBVYY/94SvuEbp qlo2tGS1dGX5SGaKYktXVluc/8XZAOhZ/QErfXawwrSFhn2H2g9ANjRqaxZ4mOtyK/Dh b9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IsV319NZNgDzu9DPo6i72lisoqYXO+k9cCPYQoqn8LA=; b=S+BBZyB3cynFMccppdOLCx/Yq/qm9OdaAtkw6ghcAEjDmNsoV0pGNxB+SoqOoYGHHG 1+huK5UeoNolMJdosjwfZTWwA8T2uTkGdj+G8puCoX1IKbV5ta9F6ey023hlla1QXi6D vJJzuWoShHPfdhluKugTgdRAzRFlM7St3JPfXM4vGZgzhN88SpwENHAexuS8TzJkkSYk faHgJIfIq4v/LtQacfI3JuBFPb8D34n1Zs6hUisQ1ZVv00cYMuMzTsk0H/3NV1XwvJua RjwRLwT3Q5yoBnaBdlRCop/jKO3QjohSz6EvE6jQ9VH3/+H41/4tPqWfVOfe0orfVpRJ Yp9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ie8rU5Lq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a056402424f00b0042b42c7f655si18108084edb.33.2022.06.15.11.15.50; Wed, 15 Jun 2022 11:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ie8rU5Lq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350133AbiFOR5i (ORCPT + 99 others); Wed, 15 Jun 2022 13:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232471AbiFOR5f (ORCPT ); Wed, 15 Jun 2022 13:57:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB6A8544E1 for ; Wed, 15 Jun 2022 10:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655315843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IsV319NZNgDzu9DPo6i72lisoqYXO+k9cCPYQoqn8LA=; b=ie8rU5LqrFcvh0XCli65VHPhDXo/FJPXc8sAQ5tG//OwzbW35OWCbi6d0r+MBUWfRWJPtB mqcdFJtNbd9yrRbj7Jmmk6N6n0jvzuqRQpu8xq042LYjxApHog7EDsajr/X+3gVY2ko6ZF jVNVMJo8dNWVoZSSfeMAzu24GUql8G8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-490-c2Q-mJ0zPsyh09IqDQBOCw-1; Wed, 15 Jun 2022 13:57:20 -0400 X-MC-Unique: c2Q-mJ0zPsyh09IqDQBOCw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 511AC800971; Wed, 15 Jun 2022 17:57:20 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38C9F18EA9; Wed, 15 Jun 2022 17:57:20 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id E9F252209F9; Wed, 15 Jun 2022 13:57:19 -0400 (EDT) Date: Wed, 15 Jun 2022 13:57:19 -0400 From: Vivek Goyal To: Deming Wang Cc: stefanha@redhat.com, miklos@szeredi.hu, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] virtiofs: delete unused parameter for virtio_fs_cleanup_vqs Message-ID: References: <20220610020838.1543-1-wangdeming@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610020838.1543-1-wangdeming@inspur.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 10:08:38PM -0400, Deming Wang wrote: > fs parameter not used. So, it needs to be deleted. > > Signed-off-by: Deming Wang Thanks Deming Wang for the patch. Good cleanup. Reviewed-by: Vivek Goyal Thanks Vivek > --- > fs/fuse/virtio_fs.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c > index 8db53fa67359..0991199d19c1 100644 > --- a/fs/fuse/virtio_fs.c > +++ b/fs/fuse/virtio_fs.c > @@ -741,8 +741,7 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev, > } > > /* Free virtqueues (device must already be reset) */ > -static void virtio_fs_cleanup_vqs(struct virtio_device *vdev, > - struct virtio_fs *fs) > +static void virtio_fs_cleanup_vqs(struct virtio_device *vdev) > { > vdev->config->del_vqs(vdev); > } > @@ -895,7 +894,7 @@ static int virtio_fs_probe(struct virtio_device *vdev) > > out_vqs: > virtio_reset_device(vdev); > - virtio_fs_cleanup_vqs(vdev, fs); > + virtio_fs_cleanup_vqs(vdev); > kfree(fs->vqs); > > out: > @@ -927,7 +926,7 @@ static void virtio_fs_remove(struct virtio_device *vdev) > virtio_fs_stop_all_queues(fs); > virtio_fs_drain_all_queues_locked(fs); > virtio_reset_device(vdev); > - virtio_fs_cleanup_vqs(vdev, fs); > + virtio_fs_cleanup_vqs(vdev); > > vdev->priv = NULL; > /* Put device reference on virtio_fs object */ > -- > 2.27.0 >