Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp334568rdb; Mon, 18 Sep 2023 17:28:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+kpWEKH1u8i868BPqoidPXqWaM2udcJBEf15UESI+W1iz6Kk6IzO9V+15cUwwOWZTnLrb X-Received: by 2002:a17:903:124e:b0:1c3:3347:9973 with SMTP id u14-20020a170903124e00b001c333479973mr10518663plh.59.1695083293060; Mon, 18 Sep 2023 17:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695083293; cv=none; d=google.com; s=arc-20160816; b=zB4D6HCse5E7kQ8/LXPW0Mch/5vE8mHQH+1FI7Rrs6jC4hom7AkfRN+ioLHf5XPpJZ 7KKAWbUJnNHO1JElIfI1Ne/XH5ys48rayv97/ImQP6eHsur9cQDGRjw6XUgVX1hzRt+Q KoN1JGMGa9AgQn9t+HyDLQxnpUJa/tUl3ieD5sfx3hjT5J+F2Iy4Y0NNWpiWcMFEKywH e5hcxu1e5aj563rSCdo2z61vaHMkpkY3uWIrPzySxr2xkIkfOnpMM3hXODOenjUPRdMA rD+8MwtctWMxvonhpuRGvjp5B6kepQXSnLui4CfEaYupKQwiz0f8tdgOD5yhr4cO0r7O TtLQ== 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=WkxIxcrv5KR63l2iFq63ZYJDZ9UFo77/A7z8e401fPg=; fh=Vsp+c7GRJlVZsZDt79+TVaBgq2pUtF1SBSpfPhPIXIw=; b=mm9Xae63DTBBgqC1bZezXrWS2d301Yt+zAG8e3OxjxPh5/PSmjo1EtUPHOH18/O2Ct 6EbhHqxsM16gwTlm6VNraQOd3VNipq7qq/djIqN5WgEW5WQZWcb9EJlI2KuII7a1mdE6 l+2mhwt14iaHt186fzi4z8a3njhSc6djxX8e9CUpVAiJtYtq/XRuOP5PWGFSJd+4Y13t mj5s8V+9zPwzWFKxRn5kuGm1QTm6LOYPJBA8wDs8bR9MN6WL04RUfDNzI2wpTB4ptgid 9jr4Uty/99x38Gh/ro7vOd80A1QNdoPWeINM9HDi/mZUULx6dKxEGbwoDHrr0t5rwXxO LEQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RDkff3uh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d17-20020a170902ced100b001c342073f76si9118854plg.323.2023.09.18.17.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 17:28:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RDkff3uh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 1D73681DE3AA; Mon, 18 Sep 2023 11:32:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjIRScM (ORCPT + 99 others); Mon, 18 Sep 2023 14:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjIRScK (ORCPT ); Mon, 18 Sep 2023 14:32:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E48510E; Mon, 18 Sep 2023 11:32: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=WkxIxcrv5KR63l2iFq63ZYJDZ9UFo77/A7z8e401fPg=; b=RDkff3uhKkYNHYOWdvjzK4sARi /3V34pnCl1JdyIgQ7ddhD+CJhlxQ1K/9gCOsGmU9ziFE35fstfG38xFMRSJEeNOSPdWC4QRnKPMvT 9lVnRsz0KxvBOfAkX+hEoOR22D+1OSeDVeQEQyGTrKaZv7dLcSDR6PJOl+EX6Z2ZpMW5KD3k3WfC3 yS15ppfiu96aSzbhWBpx+XDjIsgudZmVEEUAxvnjrjf+AkY8srNx0LX/8hO+s10sKs8XI3FvPVU/D qbFN0uQcBZnjbkdGWSpaR4TCnVX6OgsFb6lx7bP2dZ6vqaKqHarqhJrfzPyWLdKvCiFRS6zFyrzz4 m71zt2wQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qiJ2R-00G5VN-2g; Mon, 18 Sep 2023 18:32:03 +0000 Date: Mon, 18 Sep 2023 11:32:03 -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 07/23] filemap: align the index to mapping_min_order in __filemap_add_folio() Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> <20230915183848.1018717-8-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:32:15 -0700 (PDT) On Fri, Sep 15, 2023 at 08:48:43PM +0100, Matthew Wilcox wrote: > On Fri, Sep 15, 2023 at 08:38:32PM +0200, Pankaj Raghav wrote: > > From: Luis Chamberlain > > > > Align the index to the mapping_min_order number of pages while setting > > the XA_STATE and xas_set_order(). > > Not sure why this one's necessary either. The index should already be > aligned to folio_order. Oh, it was not obvious, would a VM_BUG_ON_FOLIO() be OK then? > Some bits of it are clearly needed, like checking that folio_order() >= > min_order. Thanks, Luis