Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp785009rwb; Thu, 12 Jan 2023 12:17:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvbkhugvmCrVeugRfHiUfEUwiBH2cE5w4CwpQ30wSaeYwxOM/aTozJea+aNHQbSMoMWjVTc X-Received: by 2002:a17:907:a705:b0:7bd:ece7:ae66 with SMTP id vw5-20020a170907a70500b007bdece7ae66mr72293772ejc.34.1673554652277; Thu, 12 Jan 2023 12:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673554652; cv=none; d=google.com; s=arc-20160816; b=tuNEOy9TSONj8UTHlutniobWeYOKJGHZddGTI9srMaTnscWJXyX0kRIKe3mnxwl+v0 0QGBhB6JtZDhZvt13d3CXrQTqtVtlXacvm+4eUDD60PPJ0ogbE8FqgYsorlM7qra1Wqn hNVjU4nDoK08oFMfhJJAA/hnDq4oeBr79kzbJo/NWZON2p/GQ+waqaOOTumaPmdbeZvf gFssfQlvGitpFU9CjILNRxwmpwJzd+loADhwTQOpQpQMpSpccp1UBYwdGiSTyqtyww9K u5WZOAROSnLtOZjOkHqkeC1BUqJ1S4UhMVxEKVVTFDQvSRcQOG3CbxC47NKzomryX1RV Ph5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=I2YK0KStoZilkvt5Gd+Z0QXSKrgiOl1UdETNcSgpEpE=; b=ezfG5rwBk+ygX4ZAJOnQxu/EGDHLHa+VkvQ1t+T3byF7/yqbUNWobs/suS8xZZXBxr 60wpt6khL80yBK2KHDReD+8lNQCfvCxt9HtehPjrVUcIyHYqkgH/eq4QJy/Krw7fAVq/ cbO07YqcX+ZqEJkhTwX8BaWKnndrKzHi5hcP4CP35pUmS0i3EtOC688zKp/7Ejt36mMD Os6AJsVQG6aS4OjyBVCtAPt1K532zJU28S8JGrM30LahaUvMrxNeKWqHeoahN1wdEBRR LmZnN9EWKNl3FerRvTzf6jWCD1+kuUxzq8cWQGbgzuJfI5Hne4jI3YxIKLWAtA+JBk9v IFmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cjr.nz header.s=dkim header.b=i+65F8jl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a1709064fc700b0084d2eb17555si20209694ejw.579.2023.01.12.12.17.03; Thu, 12 Jan 2023 12:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@cjr.nz header.s=dkim header.b=i+65F8jl; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232194AbjALUMt (ORCPT + 99 others); Thu, 12 Jan 2023 15:12:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241256AbjALUJg (ORCPT ); Thu, 12 Jan 2023 15:09:36 -0500 Received: from mx.cjr.nz (mx.cjr.nz [51.158.111.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C27513E873; Thu, 12 Jan 2023 12:03:03 -0800 (PST) Received: from authenticated-user (mx.cjr.nz [51.158.111.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pc) by mx.cjr.nz (Postfix) with ESMTPSA id D0E2A7FCE1; Thu, 12 Jan 2023 19:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1673551439; 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=I2YK0KStoZilkvt5Gd+Z0QXSKrgiOl1UdETNcSgpEpE=; b=i+65F8jlt9SrxFye0Gw20zt6UKpTEaqiZQ5hMVqSu0k7iplUUCLaWGe7MPjLIcUXvR2Ze2 EPZvayy3ujt17G7U6k4N9U3mDmbAViZrJRkdIjJ30e2YmzNFL9kFY3KN4OmLssXkKylqmj E8tOKo4JSk3JfhG8aJ26Wc/wDEh7vUicPsX8QXZqm+7WwOK9nS0qxN7D/+flVsxas11Fth oU/iflnYw8+Gm87I9cBkOHMwnYst1u7763QKPIvahJlVCd3cUAf31rG9cwxkdB+Sbii/p1 NDe89irKrvEmsmtdfYfdlUgHuTnNrT2Ps2o/IkqPzfauQjAjCU8/6VVNF8HXCA== From: Paulo Alcantara To: "Vishal Moola (Oracle)" , linux-fsdevel@vger.kernel.org Cc: linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nilfs@vger.kernel.org, linux-mm@kvack.org, "Vishal Moola (Oracle)" Subject: Re: [PATCH v5 09/23] cifs: Convert wdata_alloc_and_fillpages() to use filemap_get_folios_tag() In-Reply-To: <20230104211448.4804-10-vishal.moola@gmail.com> References: <20230104211448.4804-1-vishal.moola@gmail.com> <20230104211448.4804-10-vishal.moola@gmail.com> Date: Thu, 12 Jan 2023 16:23:54 -0300 Message-ID: <87ilhb36b9.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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-ext4@vger.kernel.org "Vishal Moola (Oracle)" writes: > This is in preparation for the removal of find_get_pages_range_tag(). Now also > supports the use of large folios. > > Since tofind might be larger than the max number of folios in a > folio_batch (15), we loop through filling in wdata->pages pulling more > batches until we either reach tofind pages or run out of folios. > > This function may not return all pages in the last found folio before > tofind pages are reached. > > Signed-off-by: Vishal Moola (Oracle) > --- > fs/cifs/file.c | 32 +++++++++++++++++++++++++++++--- > 1 file changed, 29 insertions(+), 3 deletions(-) Looks good. Acked-by: Paulo Alcantara (SUSE)