Message ID | 20200930161931.28575-1-farman@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=rM6x=DH=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07E67139F for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 30 Sep 2020 16:19:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6347A20708 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 30 Sep 2020 16:19:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="tuKBk2YR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6347A20708 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 32F3E6B006C; Wed, 30 Sep 2020 12:19:44 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2E0EB6B006E; Wed, 30 Sep 2020 12:19:44 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A8576B0070; Wed, 30 Sep 2020 12:19:44 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id 0557B6B006C for <linux-mm@kvack.org>; Wed, 30 Sep 2020 12:19:44 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2195D4DB1 for <linux-mm@kvack.org>; Wed, 30 Sep 2020 16:19:43 +0000 (UTC) X-FDA: 77320238646.10.shame35_2808e8d27194 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id 0C04616A4AC for <linux-mm@kvack.org>; Wed, 30 Sep 2020 16:19:41 +0000 (UTC) X-Spam-Summary: 1,0,0,a5d9d9af27cb24b3,d41d8cd98f00b204,farman@linux.ibm.com,,RULES_HIT:41:355:379:541:800:960:967:968:973:988:989:1260:1261:1345:1359:1437:1535:1541:1711:1730:1747:1777:1792:2198:2199:2393:2525:2553:2559:2563:2682:2685:2693:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6261:6653:7903:9025:9592:10004:11026:11473:11658:11914:12043:12296:12297:12517:12519:12555:12679:12895:12986:13069:13161:13229:13311:13357:14096:14130:14181:14384:14394:14721:21080:21451:21627:21749:21811:21990:30029:30054:30062:30069:30070:30090,0,RBL:148.163.158.5:@linux.ibm.com:.lbl8.mailshell.net-64.100.201.201 62.2.0.100;04y8dn8a71ftao7qmxgdrfnbwqyfmycm1pf6ich3iqy9qdd9nh9nxrbgt3ko381.9nkhq96u1hi9gm4hq8sfdu7h1753ote7zohtrtomhthfkg5htwr4efx4ka9yw8c.e-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,S PF:fp,MS X-HE-Tag: shame35_2808e8d27194 X-Filterd-Recvd-Size: 5788 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf01.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Wed, 30 Sep 2020 16:19:40 +0000 (UTC) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08UG2Vbp090492; Wed, 30 Sep 2020 12:19:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp1; bh=m/CbxdV9HhF0Jaf/VDyDTVRvNnfbQGGc01ctHKjq3UU=; b=tuKBk2YR1Wh97waPctSv3fWAw6wULjPQJGYPzCORMFFTlRyS4VcpPghTdQOgfJciJ9fS jFYkVUqkxrRqyvs/KmltetzZpVkUkRNY642mVZmUHPAucc2UhBJVpDE7//iNN7Vi3CxA l0UGWN85ga6t+UefS727qkhtaaqVcGHTrsOwAbszE3j2gBal5LeYds1Qz/zoQmdTQDiJ klwGpXj5muEnIm2dyo44YXaFW6bIrBdw+yf1rQLN7e0+Vj10Tmf3Ks8PxHRYzB7FvXOZ hVe+84k53Rcmp3m025Ke6ugetg8MvYf+4z4h0HFewLhiMM7ufEw6ivSBRlBlItjLrT7E XQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 33vv7w27xt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Sep 2020 12:19:37 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08UG6e7Z103458; Wed, 30 Sep 2020 12:19:37 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 33vv7w27x3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Sep 2020 12:19:37 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08UGHUDS017726; Wed, 30 Sep 2020 16:19:35 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma03ams.nl.ibm.com with ESMTP id 33sw984kxe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Sep 2020 16:19:35 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08UGJXQ527460002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Sep 2020 16:19:33 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 31E8BAE051; Wed, 30 Sep 2020 16:19:33 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1F704AE04D; Wed, 30 Sep 2020 16:19:33 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 30 Sep 2020 16:19:33 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id B8BFDE05C0; Wed, 30 Sep 2020 18:19:32 +0200 (CEST) From: Eric Farman <farman@linux.ibm.com> To: vbabka@suse.cz Cc: akpm@linux-foundation.org, cl@linux.com, farman@linux.ibm.com, iamjoonsoo.kim@lge.com, keescook@chromium.org, linux-mm@kvack.org, penberg@kernel.org, rientjes@google.com Subject: [PATCH v2] mm, slub: Restore initial kmem_cache flags Date: Wed, 30 Sep 2020 18:19:31 +0200 Message-Id: <20200930161931.28575-1-farman@linux.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <a0682107-3654-8471-28c7-d4007a2867b5@suse.cz> References: <a0682107-3654-8471-28c7-d4007a2867b5@suse.cz> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-30_08:2020-09-30,2020-09-30 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 suspectscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 bulkscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009300124 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 |
[v2] mm, slub: Restore initial kmem_cache flags
|
expand
|
diff --git a/mm/slub.c b/mm/slub.c index d4177aecedf6..6d3574013b2f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1413,10 +1413,6 @@ slab_flags_t kmem_cache_flags(unsigned int object_size, char *next_block; slab_flags_t block_flags; - /* If slub_debug = 0, it folds into the if conditional. */ - if (!slub_debug_string) - return flags | slub_debug; - len = strlen(name); next_block = slub_debug_string; /* Go through all blocks of debug options, see if any matches our slab's name */ @@ -1450,7 +1446,7 @@ slab_flags_t kmem_cache_flags(unsigned int object_size, } } - return slub_debug; + return flags | slub_debug; } #else /* !CONFIG_SLUB_DEBUG */ static inline void setup_object_debug(struct kmem_cache *s,