Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5839439iog; Thu, 23 Jun 2022 06:25:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uD/oXuUgpAwiiopGgJ0lwqEkiSexmT8LL0th0KFTFqThcuHT2D9WLtsY5hdqcyWnARul0B X-Received: by 2002:a05:6a00:21c8:b0:4c4:4bd:dc17 with SMTP id t8-20020a056a0021c800b004c404bddc17mr41008637pfj.57.1655990754628; Thu, 23 Jun 2022 06:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655990754; cv=none; d=google.com; s=arc-20160816; b=BxIDJfHr4A6VvC1BIAmsaI7ruxxuKyjhyxPQEyFWadlT3/0Z8IWI8AW5BbgQnIruBP 8L+6xV7Rr2q/e1vRCkTB9BzVrSoY1L9YbVmoUlqvhpDNoGOz1rcEqjgpXxXFvxJ91oFn FDzrhx5Hm0l018UBB9SEwFFoqJsH9G9tn3FcrCkMsc2wBJ5vt6V1x/c3nCph3tu+ce2B MV8IwTFw/Vj+srCDjzmx6FUi6Au+hZ3eMVjZTyNgwTyQZmP5Fzg0LafNehVJvBKPt2Rx o4sOmCN36PrnA2R4KZ7+pw2R9AQyJmUNmgrEDpuu3NopQa7aOjnY1C4/QXwLqcTQqrwa ZwRQ== 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=RrgA3QRhrviuqlVZS1DqYvEOCwDo7gxdsScFtfx3ONI=; b=oo9raVCpYY+P4JL7TJClbcxsYFlO/2grulDxWHFyDShEOWR9uFMDTA4NbwXsAdeOI4 WcCzn4y4cmzS8qOOmuCpxka/F3ntzHgIcSIv21sXw0EXBP9VJb4qDUu3HFxr0JJcg2NG 115ha9pJZEKz+SKIelgiMnbEUsdmGMhMnoYnlTsZhS/rcXTmgAjWRbrTFfHAU9YGO4HL cr0NNX4NRhgg6bNRiWxbxBXHA18P55maOCRsw62tMLo+e4t3OOpqh2gX2nr1MQOXU8CR p1kMR/3d3iLfubs7y8QlpqVPfPHxAmAqsVcOt342WbAmJ58W3FItdcouA5KvapJ2n+x4 /iOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Kf5v4zde; 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 om1-20020a17090b3a8100b001dfb7951890si3354736pjb.160.2022.06.23.06.25.38; Thu, 23 Jun 2022 06:25:54 -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=Kf5v4zde; 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 S231876AbiFWMsT (ORCPT + 99 others); Thu, 23 Jun 2022 08:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbiFWMsH (ORCPT ); Thu, 23 Jun 2022 08:48:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A84424477D for ; Thu, 23 Jun 2022 05:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655988484; 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=RrgA3QRhrviuqlVZS1DqYvEOCwDo7gxdsScFtfx3ONI=; b=Kf5v4zdeGzkZiG3AxDBJa6gohxrfQBqBNakxAsz3DTi0F3j4ULCS5gyNosXdaYiqz6z980 sMfenL4DkQ4V9Lll/3oOSRdUwpZpKMf9zLSf1RoTQB+ihPzCELeSF6gmgAslFMiMKfFw6u 3SyaoejVZLTGT2e6p+kFH2ZYGYUTuoU= 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-445-pmhPhQ4JNM-M5mO90PjKCQ-1; Thu, 23 Jun 2022 08:48:02 -0400 X-MC-Unique: pmhPhQ4JNM-M5mO90PjKCQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6D7E5811E76; Thu, 23 Jun 2022 12:48:02 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id E0D19C28115; Thu, 23 Jun 2022 12:48:01 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 5DF042209F9; Thu, 23 Jun 2022 08:48:01 -0400 (EDT) Date: Thu, 23 Jun 2022 08:48:01 -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] virtio_fs: Modify format for virtio_fs_direct_access Message-ID: References: <20220622211758.4728-1-wangdeming@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622211758.4728-1-wangdeming@inspur.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-3.4 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 Wed, Jun 22, 2022 at 05:17:58PM -0400, Deming Wang wrote: > We should isolate operators with spaces. > > Signed-off-by: Deming Wang Looks good to me. Reviewed-by: Vivek Goyal Vivek > --- > fs/fuse/virtio_fs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c > index 8db53fa67359..e962c29967eb 100644 > --- a/fs/fuse/virtio_fs.c > +++ b/fs/fuse/virtio_fs.c > @@ -757,7 +757,7 @@ static long virtio_fs_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, > { > struct virtio_fs *fs = dax_get_private(dax_dev); > phys_addr_t offset = PFN_PHYS(pgoff); > - size_t max_nr_pages = fs->window_len/PAGE_SIZE - pgoff; > + size_t max_nr_pages = fs->window_len / PAGE_SIZE - pgoff; > > if (kaddr) > *kaddr = fs->window_kaddr + offset; > -- > 2.27.0 >