Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp76536lqi; Wed, 6 Mar 2024 10:26:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGVn8Iqy9g016ZzDmxeGMEJPWuWEwS8mMnClphbhMZmJ57Db2BCR04oAdGrZ6xqOBdVWFsifoQoWJ+eRCyhyb4vjZcy/+f4cG7W6va6w== X-Google-Smtp-Source: AGHT+IH7iKm+XvyuolK8M2i6MW2X/6Y5bYC9m/7s3gP/1K9tYITf32xGUItECo+bK2larxvVfmdy X-Received: by 2002:a17:902:f682:b0:1dc:afd1:9c37 with SMTP id l2-20020a170902f68200b001dcafd19c37mr6431896plg.24.1709749560841; Wed, 06 Mar 2024 10:26:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709749560; cv=pass; d=google.com; s=arc-20160816; b=Xj8pWMlG4BBtgX3atXEbuJHheo+HvG97IreVNqOqZP0FfDTCQYZz/hRQplkKcZwA4b N+J7opsboooWR4zzXYxK4utaAtxPPCoVr8+1z5cSuTaOWxEKH09DeRv5gZAP/HHHlVkB w+Bc366IS7hWucBLma5fpe7M0Kwjcg1Y0YMhqWKsOKenrtz86gYD1R1X0J/3a4njaU1b KOzoUoRD/M/sPTDUtTuH8RoKV4spWGtNk4nCvL6DD0VdpH3zySdVvsQtudYG0Zz0VQqh Vbfjk+Wu3aEl87tVrv1aij67jhlPYyLBhsgXgkiqqJ8eQeMHGrZKeUv8UR6/d7NxCjhs j1bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=NeN+jv49ztz1DkBAYeWMzQyB4IxgpHbFtvet8rPjepw=; fh=pZul+CrMQNbCVhmw5BDunw5PFFRt7TRLAa06zh8zLNI=; b=S7PC4zwOa7qG8jfbMeOp2hIciJfFpMKPtmo1CnxI9TqMpIVuisfkljkMKHAVvwUZUw gYGZtFYyMFKEGNlstUSc60HUhvPrXDfCstG+xAEypioc1v5XC35xTU+ZctgMoRHfOmr2 NCc+A3LuI4YN3O9AtsqWtx39MCEkbOzO/GkphvTPa3P2ZE9/aOjHTKeTCOjXShY2ca68 1/y8S8l9YxeDlc6EWs3oT/aNZKSlPNtWriNK3W29XdceTghRtdztFH9k+E3gNx561MBA fLo517uvDRJ6nlxHMS5MnaIYc4ipT9Ma0DRLdxfrqup39H1bihKpsaQ4z/skeJrEYOih L3Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tF6nRmKS; arc=pass (i=1 spf=pass spfdomain=flex--surenb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-94394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i13-20020a170902cf0d00b001dcbb569d36si12704219plg.129.2024.03.06.10.26.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 10:26:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tF6nRmKS; arc=pass (i=1 spf=pass spfdomain=flex--surenb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-94394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 82B91286F47 for ; Wed, 6 Mar 2024 18:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8669C1420D7; Wed, 6 Mar 2024 18:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tF6nRmKS" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C8B013F45A for ; Wed, 6 Mar 2024 18:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709749494; cv=none; b=BGdT8zwQF6wwWNukgJjnr+NJX1aWyGC4mT5+MjvhJKqitlQPAtOCO9hwGm6E/RO/Q3tYca105bA8rA8rDevx6Sqoov7KdR3HiyCesVoJlksbDwDIklklbis6DQXelDS5TGtlc+mdKxGGIr8j1RRCyZH3CG4/6qKWESSGcwSxMow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709749494; c=relaxed/simple; bh=mZlZ4aAM1x7pkztROKSVF7CfVo40AKOzii/60d0+0u4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=cl2baneWIvxxfVbKAQpTTvUEfFhfIwPkUaV0IK3rFbEm53dW61ZL40Gl9/+wICUBQZwrC4dj6Pr2s1F+Ej7kH+UDRkmjhDbFZPeaQoTfSB7aL+IX3a2xOBLBXbXSYKCBi7wxQCkREJ/jH9vmranhDI1ptyIT0xMxkvur7/rjuoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--surenb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=tF6nRmKS; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--surenb.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dccc49ef73eso12358151276.2 for ; Wed, 06 Mar 2024 10:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709749491; x=1710354291; darn=vger.kernel.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=NeN+jv49ztz1DkBAYeWMzQyB4IxgpHbFtvet8rPjepw=; b=tF6nRmKSJDsFFgTo5SXTWXfc3qYmMUb3MQjMby48H7EZjcTNEKTMQ3HVZ6ArnIeY6G bnnv7FVZui1jL2zdJ2jRTMJbJWM3aj+i4j9c+4jMDbwWkqRwGKhwxH4nKfYtHIZurmCU 70CNjR6bNSf5s7fZEIXOTuAnww95ElTkb4KhihBxLcurxyFAWNRvALJGRmS6F68NXakP kgPYIKYjH7w80CY+XM9KQXG5BEHjlEeu9GwKal/Xn41fdYdUY+YLdTXO/BhkTehJEksZ 0lDQQIF5vlfRYSbdOkyp+2Us61Qp1z8mfBklaIDggsZsEptmbDOB7U/eQWTVf6EgMaOI ZM0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709749491; x=1710354291; 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=NeN+jv49ztz1DkBAYeWMzQyB4IxgpHbFtvet8rPjepw=; b=fzzoww8RgU6akr75tz+MhNhf5hoqBfRr0HxxhBAEfhr0OpZfGTgofZEBXGgOVMMaIn JOjloP6rf4VX3VbTVib2IlemGd8yyGF8TpnNIOsRKlItN+60Js6aTjm7vDz+HExX8DEL el0G9PvIzcTSlkpLClyszcAORvBsrXRKf/SaQv+FhZCQpapGgSETa2b7+FsYePy9lopl GQjISbLwpreYorsiOkOYAWEPKYoi1xKLUPQ2S35jiQJbQbZ3VuPc1PVI81ob/3hnfJVR 9TBl5Wh0cuAVK7q1z2Tz/9yz6RQDw96l6Cg5vF4fqopN1dCndnzHzwWrK6taHlTujc04 Oc+w== X-Forwarded-Encrypted: i=1; AJvYcCWysc2nmnC72yghGWNhDypbDFAROuTYhOnF1Y0V3thRJ+TS6bikrb6OjlU74o2JG5k/xarHKN6VRmrBOKFrdfaT0x3/z+O3I1b7Ycts X-Gm-Message-State: AOJu0YynkBrXVmGm7ebAsvbo71jlqyBhF5QxRpZGyBPc5xbSxMiwzans ZSXvcWglTVV77iAfAZwmVSOaMWDyMEKaC93EK0gQ0Uu3BgpPkniRb7uMaVCnisHRKuxCf6diChC h0g== X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:85f0:e3db:db05:85e2]) (user=surenb job=sendgmr) by 2002:a05:6902:f0d:b0:dcd:4286:4498 with SMTP id et13-20020a0569020f0d00b00dcd42864498mr559510ybb.6.1709749491385; Wed, 06 Mar 2024 10:24:51 -0800 (PST) Date: Wed, 6 Mar 2024 10:24:01 -0800 In-Reply-To: <20240306182440.2003814-1-surenb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240306182440.2003814-1-surenb@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306182440.2003814-4-surenb@google.com> Subject: [PATCH v5 03/37] mm/slub: Mark slab_free_freelist_hook() __always_inline From: Suren Baghdasaryan 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, shakeelb@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" From: Kent Overstreet It seems we need to be more forceful with the compiler on this one. This is done for performance reasons only. Signed-off-by: Kent Overstreet Signed-off-by: Suren Baghdasaryan Reviewed-by: Kees Cook Reviewed-by: Pasha Tatashin --- mm/slub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 2ef88bbf56a3..0f3369f6188b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2121,9 +2121,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; -- 2.44.0.278.ge034bb2e1d-goog