Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3463573rwb; Sun, 30 Jul 2023 08:09:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6Ul6N/q3K9UznKJhYyeW7kxR2H0rYlHgUF+z7a/NUltdLfYms2MoGaxEamxstZBetfWzU X-Received: by 2002:a17:907:77c6:b0:99b:c8db:d92c with SMTP id kz6-20020a17090777c600b0099bc8dbd92cmr4790941ejc.30.1690729799290; Sun, 30 Jul 2023 08:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690729799; cv=none; d=google.com; s=arc-20160816; b=FeQuRA5HIdViPaZb04OI2KA0dw/+LVVkn8Cd5HAuJm3b4hKZRNKNIBGflmnYb8Rimw STGKMn1YCrc9W4d0KDhRy+vcm9Kl52WKcXAQcHNjuIRh1TTyvtX6uecAntmWAOXdwz2a kdqmox3sgkLLeWvyGCdCmguyzID89XN1mGTdrt+ag/DYQOkbWHlzFDNbmDn7gBasMHNT oyAQWppAHwtMFMGiLSERDRvrM3pkbFVQIi4udvufLSC4RHAQBvQg+Ec587bXXr/u4Fw+ rLs0ihJIyoN3MHhiX2FwFiJuxMwoUzR4NyCv5I4EWg1P6CLDQApROgyi3PveTwrKnZDB 1rAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:mime-version:date:dkim-signature :message-id; bh=PGVwrSKPSqOKImBWbZoAx1qzxZDIg0U6/MyAhWrgbuQ=; fh=lvIiQ01K6BX7Gk2VbITHnFTYBUfYndd9R3SLFOKoTR8=; b=PPH1dcWIArKDYfMJKH3Yccu/WcR5OfYyKURdwxpP7mObq3qzkMyWAW+426WSsr/61M diRs8cfd+3piDYXqyvSFRBFcrVcZUZJ9q/wxb31NUe2mww3QPl8bGHASV1Apewby6Dgo zw/413tQNZfftdhsjyyQ+ncP0ALeMBIyterWAjApQcIfS9LDaaPu5wFF16x/v2KUqpB4 IruPVy6BHibciNqQ/NaDT+iMSo3qFfbG0Mdisyokz11D0E8ABQZXIf7NpVbtyS5TB/cU i7tDjYb+KgoBHV5djhSkFNSXjCj2ah7/xMs8Iv1XhUBBCrdrtjmvHmgKWjymLdTNCwYA loxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iwoYw6Ha; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t25-20020a1709066bd900b0099bcfa1f75dsi5514953ejs.206.2023.07.30.08.09.19; Sun, 30 Jul 2023 08:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@linux.dev header.s=key1 header.b=iwoYw6Ha; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjG3OFu (ORCPT + 99 others); Sun, 30 Jul 2023 10:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjG3OFt (ORCPT ); Sun, 30 Jul 2023 10:05:49 -0400 X-Greylist: delayed 510 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 30 Jul 2023 07:05:47 PDT Received: from out-120.mta1.migadu.com (out-120.mta1.migadu.com [IPv6:2001:41d0:203:375::78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFD1173F for ; Sun, 30 Jul 2023 07:05:46 -0700 (PDT) Message-ID: <40a3ab47-da3e-0d08-b3fa-b4663f3e727d@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690725435; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PGVwrSKPSqOKImBWbZoAx1qzxZDIg0U6/MyAhWrgbuQ=; b=iwoYw6Haq+kOYGPuPZKv5wW+uOf7UmUbzIK+dEi5BcvQ8JE87XsTTo3/OaLFjVQBD/o/ir fRSrCMrpEvqE0XtHAMIKkjF5ulAwlVSYlFZPhPk/oZ9ZcnH4KqxFkMf4MzqaUwsOND4ZDJ 4e/ew8GqIOajhMOJNNAbOKquCrq4by4= Date: Sun, 30 Jul 2023 21:57:06 +0800 MIME-Version: 1.0 Subject: Re: [PATCH 03/13] scatterlist: Add sg_set_folio() To: Matthew Wilcox Cc: linux-mm@kvack.org, Andrew Morton , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org References: <20230621164557.3510324-1-willy@infradead.org> <20230621164557.3510324-4-willy@infradead.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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-nfs@vger.kernel.org 在 2023/7/30 19:18, Matthew Wilcox 写道: > On Sun, Jul 30, 2023 at 07:01:26PM +0800, Zhu Yanjun wrote: >> Does the following function have folio version? >> >> " >> int sg_alloc_append_table_from_pages(struct sg_append_table *sgt_append, >> struct page **pages, unsigned int n_pages, unsigned int offset, >> unsigned long size, unsigned int max_segment, >> unsigned int left_pages, gfp_t gfp_mask) >> " > No -- I haven't needed to convert anything that uses > sg_alloc_append_table_from_pages() yet. It doesn't look like it should > be _too_ hard to add a folio version. In many places, this function is used. So this function needs the folio version. Another problem, after folio is used, I want to know the performance after folio is implemented. How to make tests to get the performance? Thanks a lot. Zhu Yanjun