Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1275853pxb; Fri, 21 Jan 2022 14:06:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJytbZzUXhwre62RUTkdLuW0X69364GEn6+58NIcrBBTpMHd4f9umI6dugwOt+RUQZhdUnk7 X-Received: by 2002:a17:90b:4c50:: with SMTP id np16mr2645961pjb.208.1642802797152; Fri, 21 Jan 2022 14:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642802797; cv=none; d=google.com; s=arc-20160816; b=g/SoPImHAnzEwKi8ZxB6P7WqpXwPE8Eky47Iqu+7y4bR2kk6kN16XiZcWPKOatXsoU 4rj/kfhZlrGUYX0eqgI45AMsPl2OEzvi9RlepWqYFWkG7iQgATWtVP5eZaSJpNrSJ6nz zqFHL6GYN5mlXQvf47W2exm/Pb7oACaKsexEpnAEAFfFfno5716pqbJrkiD/bx/X6qYV hu1wt98dJcSLfKs+QQzQg+aKi6q6HcQF3F/yYv4lLRb+YU/ocvwGbqsxxWquHoQhgGZE MpTU11mE+txtGODTdcokTQTQ94C2ip5e3vk19Y6IqCU+ebeUDBD6/xv0rscDiJjEvvlU nZBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IYb39DD074ofBY+CnpChbvoY2rMgL4GN139kkehJynQ=; b=VDgsYEjBfnGeZPWMZtEaUJwMg8VLbCwLqev/Gs1mH8hZxOrTA5tk+98d39SfHt35Ns KzmFrqODME0HtTOZlX56gnQNrtw7iq+Vhst8BrF1aGOs2uZFYAE4qAk3ry8MTSvLsSWW EI32w/dV4Mepwauj99PDW1OGkRlHsIKChRPCgFiBtZBI/AYcOJY8NcwOzBTDSoAymfAe sz9opO+qWgOXrSRWEV9UWEaJ9CUFZnvUp6WLPJX4uGIvhTmj1Fe7D0lkvKTnT1rVbxLs Gmkp9WMyz/dtrWwyoJc8jDgHJSB5VZVNkH2PwRoo9FXtRRac3iveFjn5I9DNlyCHAc1F hVrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NVMOla5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pi3si15603316pjb.156.2022.01.21.14.06.25; Fri, 21 Jan 2022 14:06:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NVMOla5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346015AbiATNKx (ORCPT + 99 others); Thu, 20 Jan 2022 08:10:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245355AbiATNKv (ORCPT ); Thu, 20 Jan 2022 08:10:51 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B04E2C061574 for ; Thu, 20 Jan 2022 05:10:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6DE99B81A74 for ; Thu, 20 Jan 2022 13:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8364C340E0; Thu, 20 Jan 2022 13:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642684249; bh=aDoZ/3URPFdhRIJ6USCLyACTjwD8GaFFaNpMXe6l2eo=; h=From:To:Cc:Subject:Date:From; b=NVMOla5YHMD7FWeXo6bwCJbkXkzPJTxMqIUCIa/cjMQmzAY7/jROfDw9v9HpoDA1p i7icKGQROabEpOo6IBhuDM3F09eNmHKkfb9rbh5PJuu4iNZqoYlVhldXDqHl42zF8D ltY3Mfe1t2BU/b2+Tg61TnYwkAD8J/dy/ANbmxMFuYiinJainUGjlk4v+jBUu1ZW8C fhcOqGMNp5TzyGvieUq9Rr/b47e9Ab9CukZQ3MgQpevRrMNFGhndBCKtagtq+/cOmu IJN8FAKOViYrDlS5YF36B2j/CB03e1vyd1juxRqcgepI64qBPWHF8bZEZ/jPAAROLy rO6Oitr2d50LA== From: alexs@kernel.org To: Andrew Morton Cc: Alex Shi , Steven Rostedt , Ingo Molnar , Naoya Horiguchi , Yu Zhao , Arnd Bergmann , Vlastimil Babka , Mel Gorman , Johannes Weiner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/5] remove add/del page to lru functions Date: Thu, 20 Jan 2022 21:10:19 +0800 Message-Id: <20220120131024.502877-1-alexs@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Shi Couple of old page/lru operation funcs are just inline replaced. Remove them to reduce function name remember and make code simple. Thanks Alex Cc: Steven Rostedt Cc: Ingo Molnar Cc: Andrew Morton Cc: Naoya Horiguchi Cc: Yu Zhao Cc: Arnd Bergmann Cc: Vlastimil Babka Cc: Mel Gorman Cc: Johannes Weiner Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Alex Shi (5): mm: remove page_is_file_lru function mm: remove __clear_page_lru_flags() mm: remove add_page_to_lru_list() function mm: remove add_page_to_lru_list_tail() mm: remove del_page_from_lru_list() include/linux/mm_inline.h | 28 ---------------------------- include/trace/events/vmscan.h | 2 +- mm/compaction.c | 4 ++-- mm/gup.c | 2 +- mm/khugepaged.c | 4 ++-- mm/memory-failure.c | 2 +- mm/memory_hotplug.c | 2 +- mm/mempolicy.c | 2 +- mm/migrate.c | 14 +++++++------- mm/mlock.c | 2 +- mm/mprotect.c | 2 +- mm/swap.c | 22 +++++++++++----------- mm/vmscan.c | 23 ++++++++++++----------- 13 files changed, 41 insertions(+), 68 deletions(-) -- 2.25.1