Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp418921rdb; Mon, 18 Sep 2023 21:55:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDRl+DXARXfggMbCX+9zifDIyNLUBE5fPq0a+8hWRwSzxq2xiRC/NaSjogaAjdWXEfL1hD X-Received: by 2002:a05:620a:1313:b0:76e:f6c4:5a8a with SMTP id o19-20020a05620a131300b0076ef6c45a8amr10688062qkj.31.1695099317835; Mon, 18 Sep 2023 21:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695099317; cv=none; d=google.com; s=arc-20160816; b=XubzMtgKIfBemxMt7UGaZlIxmA1MtRW09KK6MwMBc4K9viavqq9ERT1Lsx3LTws8Dl /O+DLwa6diGOlvv4wF1ziI3hJQt5JX0esQ86L+3fL+UciXieMdqJvfv0Qg//aFPLjjuY oDxEVfEEPUADMpSzo7Eg7U5TFeUB+JxDRw4S6U4xXGS3ylxhouO1Yi5jgVv1JvhiBMHb viOLzz44+o6HTUv0UMhUvERTKW+LebfNkdIqrVRKm2cw8C1cWqFkO9U+IA0qATY0M+xs hLtPdNMNyL4B18Pzxiir8pEeXGtQRAE/Gnbjz1+Sxwb0TSRwblP7BFaMt6GT69+IeLJ3 5bVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=83UBXje6sUk9WQn75kJ8b+5PbDOix+4jIDRAqbsZBZI=; fh=Vsp+c7GRJlVZsZDt79+TVaBgq2pUtF1SBSpfPhPIXIw=; b=QS62KVcv0A+63k6EasGSbi/P0ZJ89ewfhzY1cDv9TNWOs6ckEHRDrKj8Lp3s7btSgp Pxj88UuPuEBdOYyxD4lB2VOKJ1ryHcgVv1j8WPJISogMe6rIXjQZkOtNjnhD7wEEeeTm uI8r7RbfmnerCOQWTsHxXTTl+jUyiD1rhLmmWxtzp6nwNjy/hmyfbUefiI1S/pdjbMwU w5Ftto7huJwKsUSSqm4LLXM2vV1jAA/DiJ9TYaeQnUNCGS5B1R/UUdy4tjId8CAj/XQI 9+YqVFgHxzOUNHm0kdEvAeBOlur1OPovdbyRRykX02MjbTcoDvIwU4d6MJBHuUPbwxZe jQCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=n4a5FdcO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id z16-20020a634c10000000b005781e99d048si7154294pga.889.2023.09.18.21.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=n4a5FdcO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EBC1A80BCEAB; Mon, 18 Sep 2023 11:36:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229605AbjIRSgO (ORCPT + 99 others); Mon, 18 Sep 2023 14:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjIRSgN (ORCPT ); Mon, 18 Sep 2023 14:36:13 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 388BC10D; Mon, 18 Sep 2023 11:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=83UBXje6sUk9WQn75kJ8b+5PbDOix+4jIDRAqbsZBZI=; b=n4a5FdcOoqT1RgfzLlj/F0VmUC HE5gfUbRZWc7yXpix1tK3ST/7dYyaFvG/1iudJ23+afNDyitWgbo077hJWs39miKja/uUlLW4GbGp TWYGjFv/i86FkNkPXRxpioTGcwWM79JYt19QeXMOUPXvaeNZx4H8YoC8hy2gYsAId5g0slLNiqRD2 V0FiOFIaxS04XCiPKKpDWVnaS1kyUT8OTwyJ/swXA7T9wPxKIbowwrfJ0VS9CgErlMhh3ec6nAkCx +Wm2dnsBeHUAcCqSk+2Of1reWaWQvbFnUrHdbn9C7/1emkK7pk2wuOawPk38lPPW48EQEZ3HnfxIM wjDj/1gw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qiJ6I-00G5ix-39; Mon, 18 Sep 2023 18:36:03 +0000 Date: Mon, 18 Sep 2023 11:36:02 -0700 From: Luis Chamberlain To: Matthew Wilcox Cc: Pankaj Raghav , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, p.raghav@samsung.com, david@fromorbit.com, da.gomez@samsung.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, djwong@kernel.org, linux-mm@kvack.org, chandan.babu@oracle.com, gost.dev@samsung.com Subject: Re: [RFC 08/23] filemap: align the index to mapping_min_order in filemap_get_folios_tag() Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> <20230915183848.1018717-9-kernel@pankajraghav.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:36:17 -0700 (PDT) On Fri, Sep 15, 2023 at 08:50:59PM +0100, Matthew Wilcox wrote: > On Fri, Sep 15, 2023 at 08:38:33PM +0200, Pankaj Raghav wrote: > > From: Luis Chamberlain > > > > Align the index to the mapping_min_order number of pages while setting > > the XA_STATE in filemap_get_folios_tag(). > > ... because? It should already search backwards in the page cache, > otherwise calling sync_file_range() would skip the start if it landed > in a tail page of a folio. Thanks! Will drop and verify! Luis