Message ID | 20240321163705.3067592-4-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 1776DC6FD1F for <linux-mm@archiver.kernel.org>; Thu, 21 Mar 2024 16:37:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3028F6B0092; Thu, 21 Mar 2024 12:37:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F1AB6B0093; Thu, 21 Mar 2024 12:37:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F34256B0095; Thu, 21 Mar 2024 12:37:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D3A766B0092 for <linux-mm@kvack.org>; Thu, 21 Mar 2024 12:37:19 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7B4504026B for <linux-mm@kvack.org>; Thu, 21 Mar 2024 16:37:19 +0000 (UTC) X-FDA: 81921601398.23.921E6A2 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf16.hostedemail.com (Postfix) with ESMTP id A84FA180003 for <linux-mm@kvack.org>; Thu, 21 Mar 2024 16:37:17 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=P3DR2DT9; spf=pass (imf16.hostedemail.com: domain of 3PGL8ZQYKCCkXZWJSGLTTLQJ.HTRQNSZc-RRPaFHP.TWL@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3PGL8ZQYKCCkXZWJSGLTTLQJ.HTRQNSZc-RRPaFHP.TWL@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=1711039037; 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=cRKfaiB6dOVHxpZUYVy57amQHTHiIgtHPVa28h/bxKY=; b=jlcAjePlVmNu2sF74bKAZe+q420lNFYnErZQSGMhpnOOpalSI0f0OqOWz7L33Ni+W+lPT1 hDlvl8lt0tTCsi5DYKCgvj6boX50MGibinbsNk2tnzQeevQEMxlAr0QjHCMQHOihH/t0Gx fX9mhNh43dMBvJUKHqoI71LLjZ4LBaM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711039037; a=rsa-sha256; cv=none; b=rTVX/DiPRNUGNssftybMpWFShgBeNoeRYnkDVyRfBbndDQHtY5/vfKc5Xt0vvSKWm1Rnbx jLciSFGtoch9hIqYKEYX9ZAaRgFWWlAfsi0p/HAcGvMXonsYrgFcciFzzCr3pQ0qPiGOqH EuxW5j93Ikr0oIHOxZJxEqQ3bavfhpQ= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=P3DR2DT9; spf=pass (imf16.hostedemail.com: domain of 3PGL8ZQYKCCkXZWJSGLTTLQJ.HTRQNSZc-RRPaFHP.TWL@flex--surenb.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=3PGL8ZQYKCCkXZWJSGLTTLQJ.HTRQNSZc-RRPaFHP.TWL@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-60a03635590so23057377b3.0 for <linux-mm@kvack.org>; Thu, 21 Mar 2024 09:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711039037; x=1711643837; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=cRKfaiB6dOVHxpZUYVy57amQHTHiIgtHPVa28h/bxKY=; b=P3DR2DT9kochFauFsS9RyrwrM4WXR5Lao6YrMcEQVj4eG+289ROsaUhEQJ2JEPkQW5 anktoYANdHN9fzzLo9jG+1aGKBTJI/RKj0yvSPxsxFEdqXTao8g0JUniJWBD2fER+cIV dRt9eDtRNY35MjS3pV0b38Q3+DHyxgtPNxtjUR938NXrNO3Mv7H6J9nTt6YSmBmy0chD tUYKRJm0poSQ87CYhrFxxXgpdhsxF9yPsrqP3+Kb33xVnzVXURtI2qKsW2353HvafmR3 hcyRZa/WN2iwh2+0gUs+x6HsIBsr0LtwFxkB9yeYEHrA+U2V3ndrdYKHA80XKUSgwpSQ EThQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711039037; x=1711643837; 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=cRKfaiB6dOVHxpZUYVy57amQHTHiIgtHPVa28h/bxKY=; b=NkqEdxBx6wweAKQ5XWXW7gYzNQPiIM9pE3Yasv7wdkQeyqPHZIGdZlKw4/F1uuLltB S25+StXL37DToABFDX+9fIpumZuAY60B/VauNjbtfy3MAtvJNpbAbGTHpWXvHvQ+8CLG v69CvNMb9mD54eJ7jTKH5GSp/joUD4TtsXXvj5YMaKHkew9vp9xwFbCbigpf6jaGvIqK LFCyKx976nF+4EzEs5++i0Jr1+h+pYDOfVzjztAxU2fjKJjU+Xvqsz8RPFQxc9Itgna8 jekRn/3KrvfelKDNsQ3+DUNeAEVBJB4ocOge+RGUtKhDVgVm3XdSTa7T1ZWt/493l6Tk UZMQ== X-Forwarded-Encrypted: i=1; AJvYcCXHpxY6pB84kklF7VGPmLUR/wHs1Vz9gAHsUFIZHOivdsOEg17yqdu0tlhn+avPDK57x41xtGA7jdZ0oyyRcSnB3dA= X-Gm-Message-State: AOJu0YzXUxzF1gp0SAW13MdxYsLOGl986MrK1cPgZW+SGDtBdacOs0iH 0hf0XosVGRfd+n4xgZtuH+x+Jmq6udClJRIn7nfc0Ly989MhCL7I1pDYakwuns7PZv65jit3QMn 4+g== X-Google-Smtp-Source: AGHT+IFYgw5ohbM2qs9qWLSKEHVv/3K2+6lhzKzCxOpGXwJ9EG3Fd8M+K30yKZwcBlNXdCTg4+rc5Suy1A8= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:a489:6433:be5d:e639]) (user=surenb job=sendgmr) by 2002:a05:690c:f88:b0:610:f11e:9d24 with SMTP id df8-20020a05690c0f8800b00610f11e9d24mr1686171ywb.4.1711039036599; Thu, 21 Mar 2024 09:37:16 -0700 (PDT) Date: Thu, 21 Mar 2024 09:36:25 -0700 In-Reply-To: <20240321163705.3067592-1-surenb@google.com> Mime-Version: 1.0 References: <20240321163705.3067592-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog Message-ID: <20240321163705.3067592-4-surenb@google.com> Subject: [PATCH v6 03/37] mm/slub: Mark slab_free_freelist_hook() __always_inline From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, surenb@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A84FA180003 X-Rspam-User: X-Stat-Signature: bsdabz1xfh1a37cbwn7gioewgjsdoj19 X-Rspamd-Server: rspam03 X-HE-Tag: 1711039037-751738 X-HE-Meta: U2FsdGVkX1/zltVuKZe3ynxQGVfRSkkkzwLGxN+TZAsJnZluyxwUsF/NUAuYi5BpAT2ML6PuXu+cfDctXVZc7S1a7iWGF1B848TApx8vofw5+gXduqHb++eWWUASmlftSTtHeWwatZTC5tLMLIiXIO7vR6IUmEPCPpm0QcESBmIAX9a+G4exNpVJRtvKR64/8kqWOBT0SVc/YczpSTPZ2h1zciztcclf5Hg23uZ+Rfyasi+zD6WEHWrK4vxWwhWiYU6UfdfbqJm9JP8my/n4Zopxzc2HpLV1ina70rKtkCKERnKdL6zN3HrZElalje2Fd2JInayvBIyha7zwvY+qSxnjudT133VjVn+zz5JI7CrHb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xQtYx9I0sTs6D3Hsjr1Ui/5lFfUON4O6z0NMeeqsNZc/9wVXmfwJ5B7FDtHnxswNWC5uS1c4y13NeM5/d/jHDAG0ebW/VGIDyzJTQs2UZVuGFWKgZDtwy9CwYoIIBa66w8BIyyA3fhdjZtnJv3nbwYElJwgXHo5tWWpXRX9TTqDTT1c2/zocukOHJg2JC4vzIZ7buVu138vsPTrQHR3unG7HGr+ixXVltFkfCZunASMkZ3CmVnmPqN58VLvPaLAAEprkgDZQy+gszvU2OGrtmWcM0b7T5Een9LyEXVCCbD8CANDghpKzPv4qUjDHk9ipl3ZxMTqoAp9UxBuOLPzHd4ooiCyvA1Y9zx9wYDLKO/ROm9tXX2XiDWvqqGLhyhALMpOqkVHLw== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Memory allocation profiling
|
expand
|
diff --git a/mm/slub.c b/mm/slub.c index 1bb2a93cf7b6..bc9f40889834 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2106,9 +2106,9 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init) return !kasan_slab_free(s, x, init); } -static inline bool slab_free_freelist_hook(struct kmem_cache *s, - void **head, void **tail, - int *cnt) +static __fastpath_inline +bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail, + int *cnt) { void *object;