From patchwork Thu Apr 21 23:48:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 12822576 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05FABC433FE for ; Thu, 21 Apr 2022 23:49:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC7146B0085; Thu, 21 Apr 2022 19:49:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D29808D0001; Thu, 21 Apr 2022 19:49:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B05DC6B0088; Thu, 21 Apr 2022 19:49:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id A09266B0085 for ; Thu, 21 Apr 2022 19:49:03 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6862A20738 for ; Thu, 21 Apr 2022 23:49:03 +0000 (UTC) X-FDA: 79382529366.16.F66099A Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by imf05.hostedemail.com (Postfix) with ESMTP id 22AA510002C for ; Thu, 21 Apr 2022 23:48:59 +0000 (UTC) Received: by mail-qk1-f175.google.com with SMTP id s70so4756177qke.8 for ; Thu, 21 Apr 2022 16:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OX+ZZxfUCa6AeznhtMYBa3lbAYkGql05KEYmpApGJvc=; b=fWoFdNFoTzuTeyd37gJBh3UEJqZnL5c7olLDqlVchiUDB4EfzgpzArPgDksaoxFYSV lFcwfvuY2O4d+01Q5Zj7FApRfnsx10MrvqIQjieDrYqKS8oTMogkpDCLe6b+tIvGeoDg oZ25deodeMYYdcb4msCQZ95tNwqLOpZL1GqFWlCJbzyzHA0RXWkB1OWPmvNGxWqOFk0Z NMobe8u2+R7aXU1cBxhn6C/5a3nl/GRTkhDG3IY39MAnvrmCeWGVgd8OH0FEk9JXcTV+ sT/ZRPNX+2nh2YnvFSNMks5fpzsFDvBjYXVsugVKFszq5lRjdggcfrPmLI1vTlpoRedw R7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OX+ZZxfUCa6AeznhtMYBa3lbAYkGql05KEYmpApGJvc=; b=GLPy2ZQqrMAcabJOJYn5+KpdbjLC/t1XIEAOS6Pyo6WrlU6d/VSh402WAtqUfcysJI Tb85QkD27Ndt/7gOUNnrR0ufZaugKEhww7aBjskRuWnEIcSqNzBIqHqL+XsjdYiu7Cud ov/e24om65wbVkE96Usvm5RBlNdwZrsufO7raUCwT9x2wjxqyIoOWJHbxbjv5S/mwVpK d9nYsIxQMqkjAwz7LeGBDbZocltPB5lgvHznorzyiSgJm2la5Hkxa2dkere3Qa4GlsSq NYvo84GFMJnDDzUOWEr2OZDKrwBZ96AQ8zXc8CH4e4hgUHwmPj/KD0iAOF5cxI4gAEs/ RYow== X-Gm-Message-State: AOAM533mig9ANq+X+NDREo7znmtOBMiOxbqHUjwJaYsLMaZvLUM6U+wJ mkkol358LVUaKjmCUJ0o8g== X-Google-Smtp-Source: ABdhPJy4AfRMSM5fE/ShUTn41jLAMSbQ5zXgowJp+WmfgN33q5UIkYcEB9ug5C7qJVU5PFjSL7Hzbg== X-Received: by 2002:a05:620a:2805:b0:67d:5c7e:c43a with SMTP id f5-20020a05620a280500b0067d5c7ec43amr1216746qkp.84.1650584942298; Thu, 21 Apr 2022 16:49:02 -0700 (PDT) Received: from moria.home.lan (c-73-219-103-14.hsd1.vt.comcast.net. [73.219.103.14]) by smtp.gmail.com with ESMTPSA id a1-20020a05622a02c100b002f342ccc1c5sm287372qtx.72.2022.04.21.16.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 16:49:01 -0700 (PDT) From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet , hch@lst.de, hannes@cmpxchg.org, akpm@linux-foundation.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-input@vger.kernel.org, roman.gushchin@linux.dev Subject: [PATCH v2 7/8] mm: Move lib/show_mem.c to mm/ Date: Thu, 21 Apr 2022 19:48:36 -0400 Message-Id: <20220421234837.3629927-13-kent.overstreet@gmail.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220421234837.3629927-1-kent.overstreet@gmail.com> References: <20220421234837.3629927-1-kent.overstreet@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 22AA510002C X-Stat-Signature: qyh6sjw5txms4jehjo5q5zmpsemnegdx Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fWoFdNFo; spf=pass (imf05.hostedemail.com: domain of kent.overstreet@gmail.com designates 209.85.222.175 as permitted sender) smtp.mailfrom=kent.overstreet@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam01 X-HE-Tag: 1650584939-482615 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: show_mem.c is really mm specific, and the next patch in the series is going to require mm/slab.h, so let's move it before doing more work on it. Signed-off-by: Kent Overstreet Acked-by: Michal Hocko --- lib/Makefile | 2 +- mm/Makefile | 2 +- {lib => mm}/show_mem.c | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {lib => mm}/show_mem.c (100%) diff --git a/lib/Makefile b/lib/Makefile index 31a3904eda..c5041d33d0 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -30,7 +30,7 @@ endif lib-y := ctype.o string.o vsprintf.o cmdline.o \ rbtree.o radix-tree.o timerqueue.o xarray.o \ idr.o extable.o sha1.o irq_regs.o argv_split.o \ - flex_proportions.o ratelimit.o show_mem.o \ + flex_proportions.o ratelimit.o \ is_single_threaded.o plist.o decompress.o kobject_uevent.o \ earlycpio.o seq_buf.o siphash.o dec_and_lock.o \ nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o \ diff --git a/mm/Makefile b/mm/Makefile index 70d4309c9c..97c0be12f3 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -54,7 +54,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \ mm_init.o percpu.o slab_common.o \ compaction.o vmacache.o \ interval_tree.o list_lru.o workingset.o \ - debug.o gup.o mmap_lock.o $(mmu-y) + debug.o gup.o mmap_lock.o show_mem.o $(mmu-y) # Give 'page_alloc' its own module-parameter namespace page-alloc-y := page_alloc.o diff --git a/lib/show_mem.c b/mm/show_mem.c similarity index 100% rename from lib/show_mem.c rename to mm/show_mem.c