Message ID | 20230109205336.3665937-12-surenb@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 52920C54EBD for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 20:54:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2CF88E000F; Mon, 9 Jan 2023 15:54:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E032D8E0001; Mon, 9 Jan 2023 15:54:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA4858E000F; Mon, 9 Jan 2023 15:54:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BC0CA8E0001 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 15:54:10 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 90461120C11 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 20:54:10 +0000 (UTC) X-FDA: 80336463060.01.3827950 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf08.hostedemail.com (Postfix) with ESMTP id DEB4D160006 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 20:54:08 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=GGWOlVFN; spf=pass (imf08.hostedemail.com: domain of 37368YwYKCAQwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=37368YwYKCAQwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673297648; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=VKcEnbcUm4yNPmJ0/UBWAk4YOoOktsWvie1GPNgM1C8=; b=BXdX0xKgucf2+3V/4ptuInSVIZ4YT6nDupN4R1YekB5mPdF0F/ugRioz2Owwnzh57lYjiO X/9cYY1LN/cRA9qZIi5gZ+bkzgJwPlZRjudbAYqZFBF1ao1QKotmdp0sw+fAgSUVFPYva3 Y8Nw/xioq2O/4F5fbrjKiAG5MhcT45E= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=GGWOlVFN; spf=pass (imf08.hostedemail.com: domain of 37368YwYKCAQwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=37368YwYKCAQwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673297648; a=rsa-sha256; cv=none; b=Kj0cN0221x7zys0V6QmRO53mAKS/CGRDFzlxH+2DsYWxbM8CUSlWoIH+D+fm3weeLgMImT 7fqT+MYfxqt/B1drdQLTlPilvjtoew/7a9+UNLzabLTWcHKKDXunsn+nVPsXcioDGGi+qW xSVqenxT81PfFmysE9dKwGxKaec5764= Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-46839d9ca5dso104888827b3.16 for <linux-mm@kvack.org>; Mon, 09 Jan 2023 12:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=VKcEnbcUm4yNPmJ0/UBWAk4YOoOktsWvie1GPNgM1C8=; b=GGWOlVFNZmpsv4EqX6fJ0IzU46mRQdwbpB1woCBvprw4wrB1Px0W3aw0R3eA4F/+xV kXuBRDFymMvypEzFr/D4iD7og2WAH2DpqMoKxtl2yVGo8HrvBlCIzI0TYQCav4I1owI5 QhJAem5dniKSevuuTKEF0EwC81wZP9AQ1hwH/aOaMvCSNfv3FcYZaW7nXgrr4EsyFNJE AJznojM8o2oQLC4YAgQdb7K64EDnrtRV2QjiyePckmOOYm4vpeviEyBwwk5GM5l0mBi5 NKaa6vy3INpTQuuxZ0BRwKOg99o3TKTitzAEr6jS2DiN0O+IImG4Tiab8jZ8nkO0QP6Q MsPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VKcEnbcUm4yNPmJ0/UBWAk4YOoOktsWvie1GPNgM1C8=; b=pKrxMc/B3Wipr9uVvv1DrzkQlX4a0WOkmZI44Y1kJalOUHbO9ZzA2boYbFZUjzTBsY nT5xQo2vvMO5FVv9uv4jAUkTSPZN4dVa5OlE2TYKVQ9V0mPQKVblPA3vHmThlLlUwhLG 1wrRdM8+PaMw7xUKh9/ssqURWxst2HV1nzgcHW5XFf0lH9PLvhCaNCWb/X5eilgf0W0M G3Puwr97fZ09ogYYFS1jLc8kGR9E+gPMJPJVRMMjXAUR8Lx6YQnNXMPwIs2xCrznzWRS bYsYpGvkQDK++vOTtviJWepRKXCe0v+apB+pRMNIXALics27uZdhK9+0HYMKKD86ZZ0h Cipg== X-Gm-Message-State: AFqh2krMMYiezS9lQeHA+dUV9EMuwGketWBgO2cNP6BneqoJk8gRGMrf TPqzPGK4C1qCyaBayMF5rhorj1eCoYo= X-Google-Smtp-Source: AMrXdXuuklmw1U5OSS04yToFIKYXQnoMsaTWu76HfgvyMhLNzfJxTKm5wgWz/6XkfwWL03n+CBAO8y2WRQ4= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:9393:6f7a:d410:55ca]) (user=surenb job=sendgmr) by 2002:a0d:d48a:0:b0:46a:f5ee:a2fe with SMTP id w132-20020a0dd48a000000b0046af5eea2femr1229443ywd.207.1673297647974; Mon, 09 Jan 2023 12:54:07 -0800 (PST) Date: Mon, 9 Jan 2023 12:53:06 -0800 In-Reply-To: <20230109205336.3665937-1-surenb@google.com> Mime-Version: 1.0 References: <20230109205336.3665937-1-surenb@google.com> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Message-ID: <20230109205336.3665937-12-surenb@google.com> Subject: [PATCH 11/41] mm: export dump_mm() From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, laurent.dufour@fr.ibm.com, paulmck@kernel.org, luto@kernel.org, songliubraving@fb.com, peterx@redhat.com, david@redhat.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, gurua@google.com, arjunroy@google.com, soheil@google.com, hughlynch@google.com, leewalsh@google.com, posk@google.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: 4ywmcdahkgck1uk87rke4athsd3ow7rb X-Rspam-User: X-Rspamd-Que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6QXATmF2sGoYKaVGOh2OzuCIj2YMADuRzvF9JwYXb/YUny2fJFJHbjX7Q/u7m4PdxfwtKS2MtHjM092CeD9JRSyFJBowgH/Mrp80LU7Uv9ZJC3EXkQr3/yhgkjbuCdEa9KN+4cHWvVeL0pxKkcb4hJduJ+sQ9LDeKxcC1/jp0fL/ahTo07QFPLb1LWLiP8j2oyFqQiF3l5YpBllyXKxUm7/crkTIbgXteGT0H2SinNjEPSl3J7/fMYr/eFT8kN003simBdan6km0/r2iy91lmVrkHOrt6phNEo0FiGpjd+xWuJ5lfXDLp2UPRYxW/4UfBlflnVw85nWReC7Kzv7TPQkE9n7YbxMTqs76+Xf569NxefMQV9q0kscpYVZBzRshLGbmgdz2Eo9hv5q0 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: <linux-mm.kvack.org> |
Series |
Per-VMA locks
|
expand
|
diff --git a/mm/debug.c b/mm/debug.c index 7f8e5f744e42..b6e9e53469d1 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -215,6 +215,7 @@ void dump_mm(const struct mm_struct *mm) mm->def_flags, &mm->def_flags ); } +EXPORT_SYMBOL(dump_mm); static bool page_init_poisoning __read_mostly = true;
mmap_assert_write_locked() will be used in the next patch to ensure vma write lock is taken only under mmap_lock exclusive lock. Because mmap_assert_write_locked() uses dump_mm() and there are cases when vma write lock is taken from inside a module, it's necessary to export dump_mm() function. Signed-off-by: Suren Baghdasaryan <surenb@google.com> --- mm/debug.c | 1 + 1 file changed, 1 insertion(+)