Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp389406rdb; Mon, 18 Sep 2023 20:14:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+yJJkyYAva48ZlCys5w3ESVXKZKBcw0/wXGfpOsUaB1z9NsxMJC9J+KDt8wto7kQcy9e4 X-Received: by 2002:a17:90b:818:b0:26f:b733:6887 with SMTP id bk24-20020a17090b081800b0026fb7336887mr7694035pjb.27.1695093246128; Mon, 18 Sep 2023 20:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695093246; cv=none; d=google.com; s=arc-20160816; b=qM3IQZLJ/cJA3gTAyKNQpeCJZMgQk93Ucxk4QCAKnUeQEtvaOTJqiSfjyIqStKbZKI wA4EJPkyrPVaYWpFsvmyhBQcnpT+qK12rfv5RDYJ75cPoDGY5tkNGXRe73Eak2VUFSKO 4j0AdoyoBEg0DeWl6ATf7w4gIMIFMuDJXsCg+08v2+cfq/M/EshGKg2laIKPi25B0JS2 TFFbUKfI8HrCWFqolzRKneEE3FvzeZ7JdDzyHVZF2YUfLvAwsOBvHkFV7eDZPFX8Xhxp COklKO9ZFCbP4E59ehqZGdUYA8gk9TqJMpknTsO/325gbgtkW+a+C4aYtOIFDuwPMzkF e4cg== 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=ioEeAGr+2NV3niPRdLLhdMSROTGhWvYL7RpL0QlpWXo=; fh=Vsp+c7GRJlVZsZDt79+TVaBgq2pUtF1SBSpfPhPIXIw=; b=CCPpQj9zlzybjvUQk5S/04HB08QTT5qvGRtheyAFe/edGF5jLORLLLBltIthtD/uKH zdyQ3yZDexD1DOif6yONJf7LYHO8pj/0hm2nU8e2H12IfVtlEmEpRT6gXiViYjFJ/k6j C9hU5jP5Ft4NjBaBCNu0heq+rchBQYim4jU6hJeJVo7LcsxZVuLeL8XD+adyuf9WSJZ1 59WzstzHnrNBvNaiZ/cGq570WqMcchXmuTfgOMHCPRlGjpyOxbKVrahmE6C3YPC3XEYw X4siaDLNgrBYDbv14UBPpMasGK3cdeq0+7v+wgo7BfgTwdhAelJ03+fobu9EaiRVngx6 zWqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PnfRPAkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lw7-20020a17090b180700b0025bcf85bda2si1691008pjb.7.2023.09.18.20.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 20:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PnfRPAkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 6431E8026DF1; Mon, 18 Sep 2023 11:28:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbjIRS1y (ORCPT + 99 others); Mon, 18 Sep 2023 14:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjIRS1x (ORCPT ); Mon, 18 Sep 2023 14:27:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37B0F7; Mon, 18 Sep 2023 11:27:47 -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=ioEeAGr+2NV3niPRdLLhdMSROTGhWvYL7RpL0QlpWXo=; b=PnfRPAkBF0mMzSlbZyC87L/2P8 hax/k2KlhyAoApjRDSwNcg5w4O1qCwBtBHRybKE1zQzj80vHiy2j2dI7X15GAb+Znu7FGbDdGgVvB wfujJfBcPFioDiKB9xDpcKdWf8/uuQYl5rdvhzoAhGwudtXTUVzsInO4Am7F16uE7T337/N27315u yCoK0kwJjAy0BKVDORUH++3XKnAdP0w8pihdcPs/3P4p26/tTXg2b/o1hJ5/i9H2W7Ao2rJG4Xf9z I382YPvkdujLoFZ8+274K28EB5kjsINTeIpRuxcj+BmmX3IhAKOC+QK4a0I1a8+LzIBFDs+/1eM8R pckEMDIw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qiIyI-00G5AT-1k; Mon, 18 Sep 2023 18:27:46 +0000 Date: Mon, 18 Sep 2023 11:27:46 -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 06/23] mm: call xas_set_order() in replace_page_cache_folio() Message-ID: References: <20230915183848.1018717-1-kernel@pankajraghav.com> <20230915183848.1018717-7-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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=no 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:28:02 -0700 (PDT) On Fri, Sep 15, 2023 at 08:46:10PM +0100, Matthew Wilcox wrote: > On Fri, Sep 15, 2023 at 08:38:31PM +0200, Pankaj Raghav wrote: > > From: Luis Chamberlain > > > > Call xas_set_order() in replace_page_cache_folio() for non hugetlb > > pages. > > This function definitely should work without this patch. What goes wrong? As with batch delete I was just trying to take care to be explicit about setting the order for a) ddition and b) removal. Will drop as well after confirming, thanks! Luis