Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1061904iob; Wed, 4 May 2022 13:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh8cS+Vd2KDeZPO1CMDDZD60xS3vC9xVOSRK1ZSrDma0AESF8crxtqAj6wbAB3S2Xy84qf X-Received: by 2002:a17:907:2d28:b0:6f4:487e:8554 with SMTP id gs40-20020a1709072d2800b006f4487e8554mr16204935ejc.87.1651697459217; Wed, 04 May 2022 13:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651697459; cv=none; d=google.com; s=arc-20160816; b=hBNB3GqlFOkWejoq4UFBu/MsPwx5MOO6vYKqQ+oiD30LSG1RITAYFrQsMuKOoIlFN1 ja3iY2M/OnI/Nwk+1XXu2PDqPuWY9+BecnkzApTFAGcq94dhfWva4IkgYsqp7dInmc+d DRVU8n9JLAj9vliKgRiADisGgn127cyPIUyAkHzd62U0YYqK1EOuSJZYC7qycztyAH0H i10CiOIOZjwoCkioWcY7eo2uvLkkUFwkvadD2voVkXtaq23tn3q51RWzCIiLzrxmFlLI 00d0Pdv4xuNbZY1C5nC6QTiLSzkokw55KwkUgZuSjBt9zUq7zG7JKznH4M2UN4x9fC2p w8oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x56R5P5Ovst1E8E/m3Q42KgG3BOgifNTi5pj7aSPnuQ=; b=UcXD2GuvpgIMUPfsjhrHkofH4xxcAyE8jpKz0PotW4Nd77HRluxQ1eYMe5tru+yHAA 1H0AvS2RedMSRolVx86pBtKbWIjG4/fJVJ6JxYL4gzAbdTw1wipKXfSGWo/OV5qb+kr9 zu6RvLblFI10+1UvtXyHLRj1Zh7fT6ZquR3x9ekzoyZvsYpxvLhGCwf92CFdHu1dnb4L Kil1vUJQCHgkZHBy4WnMV2zepjr/s2ABQ5MLlnPnKO7/HcTX2lStWrC7XCKxiVGOjvLR LWPbOOm6AAcLUc5n0D/CGk0IZjE8xB0hcHnnexFQoZp98/yvW79e3JOHN9CY8qlsQxkE GqGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=OC5188RC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y25-20020a056402135900b004281818148bsi1713832edw.240.2022.05.04.13.50.35; Wed, 04 May 2022 13:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=casper.20170209 header.b=OC5188RC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236163AbiEDDfz (ORCPT + 99 others); Tue, 3 May 2022 23:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbiEDDfx (ORCPT ); Tue, 3 May 2022 23:35:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5B01AF03 for ; Tue, 3 May 2022 20:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=x56R5P5Ovst1E8E/m3Q42KgG3BOgifNTi5pj7aSPnuQ=; b=OC5188RCeNmzIV/clsEa71+0AM 8kZE/w3O1HprWmJBAKnItAlcllSYAUUyyUTK9J+oYNHpXst53X8tsrtpbbDQjkWuNBMGGx63gAkV0 +bof377JuUv9evhToXmbfYVYyOicOPYAa3vxUIldkdfT6+n9Sm5zc87sH3Z3mC0VDMkqdD6q19/Lu AlH6nGuFL+Dj6vv/XzsWX2kF3DICyR0RNzkV/EFMIfqzRInT1UfglZbx0+Dt94FNfUUlptScc6rdi p4I1tgoEh1RhQfCXojJGZLcMM9JPj453nPBKNtFpZc1PpJWoE9jVJDq9yXv/vyamGag0lvqVIC5+M Q4/FXLUg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nm5kL-00GCYk-Id; Wed, 04 May 2022 03:32:13 +0000 Date: Wed, 4 May 2022 04:32:13 +0100 From: Matthew Wilcox To: Minchan Kim Cc: Andrew Morton , LKML , linux-mm , Suren Baghdasaryan , Michal Hocko , John Dias , Tim Murray Subject: Re: [PATCH] mm: don't be stuck to rmap lock on reclaim path Message-ID: References: <20220503170341.1413961-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503170341.1413961-1-minchan@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Tue, May 03, 2022 at 10:03:41AM -0700, Minchan Kim wrote: > -void rmap_walk(struct folio *folio, const struct rmap_walk_control *rwc); > -void rmap_walk_locked(struct folio *folio, const struct rmap_walk_control *rwc); > +void rmap_walk(struct folio *folio, struct rmap_walk_control *rwc); > +void rmap_walk_locked(struct folio *folio, struct rmap_walk_control *rwc); I see the build bot already beat me to pointing out why this is wrong, but do you not look at git log to figure out why code was changed to be the way it is now, before you change it back?