Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp323563rdb; Mon, 18 Sep 2023 17:00:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc4WKKIe7l/mP8LhEz2YJmlq5n06oo3iCeOmtEK1F0+Ppk3O0roytKPBNw8w9o3evU1QGl X-Received: by 2002:a05:6808:2014:b0:3a4:35bb:edae with SMTP id q20-20020a056808201400b003a435bbedaemr14195522oiw.29.1695081659176; Mon, 18 Sep 2023 17:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695081659; cv=none; d=google.com; s=arc-20160816; b=lhb0HN3aIvfKLexrhkVnczmynjpKT3NLNUf9Az5TwNQw6IkN3LHuescDIBnWCkSTWW y2QiY7oe664Nk74wTKiDWluZKUo5X8fGtyAcOclfzquvrBaPUE3fnAd2eBAriDR+hQMz uxvEUHUBFzzHWpeacnhK9PaXXSZ9z4jMdbNXF9SUyYbiHQ1FScnHJIgz6aIP/AsELNOG ir/r7+uDgVrLmbBBEIe7IhbLdqoj1yzbk+fMcmxROMCb2Vq/BQxHHBRssRQTv8fWH8eD 1k9Coj4P27j/yf4fOI/YBeyVOEdWZU8VU+Ckp7k9vegtxTI1PGBsL8rK4apRFCISxQFC Kiag== 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=sVG7Tz4mbiL7zFD9pXkZDz/RHS04WKOIQw8iJglOgVs=; fh=Vsp+c7GRJlVZsZDt79+TVaBgq2pUtF1SBSpfPhPIXIw=; b=LHJHNWXHSRWmuRN7N1HhnApzYjiMXgxmCd0T0Lcad/F5AYZDtV3V5snpLtVjkp90QW +BIZn5cLvTSL3FifBF11qYUPO0/u3lmxALJK+aHr5EYQUXj3AdhIgy3xELjVBEtsCzlE kBP5P3tDQd2lq3qn3FPnmIBZTpII/dvYthKfelLz0+yHiMNJfsdUuAHlwwm9v2UW68Lp pyDR8xJuympe//gt+xWqDY9DwyD+/FaJK37tii+P1XuHvqZRsiHUUpbwweR9JPgSFk8C VsSJR9qab0XFutUviFs7pUkHonCKfOg32V+9X1ePHUd3hILtT4wFEWRV1m+B2RAc0kaI Dl2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BRoxodG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id o6-20020a639206000000b0057821ea067bsi6580040pgd.30.2023.09.18.17.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 17:00:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BRoxodG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 95AD580EA7BC; Mon, 18 Sep 2023 11:25:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjIRSZu (ORCPT + 99 others); Mon, 18 Sep 2023 14:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjIRSZt (ORCPT ); Mon, 18 Sep 2023 14:25:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ECA5F7; Mon, 18 Sep 2023 11:25:44 -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=sVG7Tz4mbiL7zFD9pXkZDz/RHS04WKOIQw8iJglOgVs=; b=BRoxodG+HQtU46yX99ln++ZjUI jDo2UFL72u1TGVgslvDMwhexkR9M4DBavYb8bCC3D8/fVCvGz/BdbTdj7miPIWikmQTRRBAag3r9H 36LJxM8kvf9dk4YJ1q4vUlaQuz9OUn5BMa5gBVvXxMdt4Dg2dztGqSW8oBwRapHs5ES20kWpghRzK +U9LwiBlR8qYH36T3tQlmYQyThvUwdWs7LPjKVyou0rivoVU4dhe2lgTxGbUlKzzcCRV0+GiSNXvW vj7aG/B5Ti41ZqjIHbQlFJfW+HKQVLKEHT57VPok+JZhZAwdcHHA9+4Y3JLWLd8eX5Vwo4HDW9E6r iYU4wkHg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qiIwH-00G4zG-2i; Mon, 18 Sep 2023 18:25:41 +0000 Date: Mon, 18 Sep 2023 11:25:41 -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 05/23] filemap: align index to mapping_min_order in filemap_range_has_page() Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> <20230915183848.1018717-6-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:25:49 -0700 (PDT) On Fri, Sep 15, 2023 at 08:45:20PM +0100, Matthew Wilcox wrote: > On Fri, Sep 15, 2023 at 08:38:30PM +0200, Pankaj Raghav wrote: > > From: Luis Chamberlain > > > > page cache is mapping min_folio_order aligned. Use mapping min_folio_order > > to align the start_byte and end_byte in filemap_range_has_page(). > > What goes wrong if you don't? Seems to me like it should work. Will drop from the series after confirming, thanks. Luis