Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1055688rbb; Sun, 25 Feb 2024 17:43:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvOhaB+pjA9orrhyKjVMi+PYnqbGrd52fOenkaQDd9KM/0ws340zeYonzSqNOtlEDAgJg2zL+SaTI33IGdjboo4SQflcMdbpReww9C9A== X-Google-Smtp-Source: AGHT+IFUfrYfFh5QnMylUbxclBNT+tEVAjbsplzefQAs+iwg7FzkCeL+ga06raEA3IhN5mwZRpGb X-Received: by 2002:ac8:5f96:0:b0:42e:79f5:9c14 with SMTP id j22-20020ac85f96000000b0042e79f59c14mr5181932qta.52.1708911825185; Sun, 25 Feb 2024 17:43:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708911825; cv=pass; d=google.com; s=arc-20160816; b=qUNU0Q5QGHXtBrkeoaENvCFq0U54MiKs6+Sl98bsTuS0eEX+BLFja8j0AFnoXFv7Az rCL4Yq8huRDqXCw/EY5sJoUFdTnAKtTot1wivD5ZmtRrMjHkYfH5slZaeDf/e3xIVN6P U4VHLwAHvT5/sMc3f30m5QIYvbJG+gFJYy9WJb5fHvg1kBlYu3BEkKHec7NvkFCk9KtQ No6b4qHQndp4Cpo24hIKpXCTayug4CHBdbaMrrhYm1jk8YM7AxKgc22Fc4+CWyH0iMrx i/612QPqvPmYMQ+qZY2FMeGZoeLXBFoc5kse0C/niebLK1jRxoav62EBywsNdUbe0OGe tUlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=lmMqCI/dOuk22TO51t0Np8k9xwWwCikISvrBZRgIdGg=; fh=RzrJ08Xt7RAT1TCJpHjAR4x12oN63Rf68U9QCrSwLRc=; b=DTlY1/u1wO+MpvGyNvBghAkpxfMBzgrpIFPOOp/e83U5msm+eLZ3Wo9jZZk7MirqA1 6lqz4wM4s+CJnYY0oPRsi6HuaCcU6fB1QNzPfQoCydkMvEqX5Ink8QCJad9XaoDw8b38 TEUUouKgthEWk3/ym7DCC22hcqs3clCa2/mLurp6tAEsqXYUzYhWkrdwiwTZtnwdbnzW IUecXFgY3c8GB2bDx69M0jygp1q73Bq5uLjrpDfPTYsC3g9N33+Xpk+RbKUv9EWQhAH+ h8UkVazKdD2yCQTJoByRGeIlz378/POa3rTLcCpB0jV48DtjpmBzN7iJV6onjkomAFZ7 7HeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Mze7/Vwa"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-80386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r13-20020a0562140c8d00b0068f1041351bsi3981024qvr.221.2024.02.25.17.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 17:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Mze7/Vwa"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-80386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DDA451C2102C for ; Mon, 26 Feb 2024 01:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFE73DF60; Mon, 26 Feb 2024 01:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Mze7/Vwa" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB6EAD50F for ; Mon, 26 Feb 2024 01:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708911813; cv=none; b=BE4A9hoiHeSHX7mATGRs8Olu3cXic6c7aei3j4bEzOFFCOG7xkUAmUrCmfJAyRqCvJg9wJBCsZOEjDo0Nj9kkvMifGpf0CouS1WOYrjB9pEXvs3zHd2omnaajBWA9Su/NFvFhQk33n506PQbhj/nP9C/El4/nxL9FMsJaa/pJgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708911813; c=relaxed/simple; bh=uWcV2gTIGUl/QMgZBSgY4HqrX8vPTUW8Cno0GuaYuSg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qiRcrj03Lgpecba4KFxQwutO/hP6oLxbsif1VPgWzbmGS77JDwhcURWOeiq+8TclHn2WwP2xcXV6lQqA0C8MpsC0NGEMpahJqtSP8S72S4RXJsdC1J0lS7C1DkW8EernbYDMwIgn+DJoZxyttigIY+iUWq9bz0WYp891hH0OcB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Mze7/Vwa; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708911809; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lmMqCI/dOuk22TO51t0Np8k9xwWwCikISvrBZRgIdGg=; b=Mze7/VwaJsIRJFylNyR1m42Gq3WmPILBF1Gi2wnES4v+axYBHJ3SHwNOvc/VUMFsi5TDG4 JdiQiOswl3chACckUvxfQ17cZQwSdA5sQPS2dvfPDuPgNv7Rtjc1hSRSGI/bwxgqV2hhEQ LppAu7cA6k+oMUOuzdWcGX9siAZRNLA= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-225-jg0lgMWTPh2cZzhEZ1oLZw-1; Sun, 25 Feb 2024 20:43:25 -0500 X-MC-Unique: jg0lgMWTPh2cZzhEZ1oLZw-1 Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-5a037bd2346so2884272eaf.2 for ; Sun, 25 Feb 2024 17:43:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708911805; x=1709516605; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lmMqCI/dOuk22TO51t0Np8k9xwWwCikISvrBZRgIdGg=; b=JsknEZiCi6RSyZ1F2G2f6QHu0IoaKQTt3xXOhBDwMmyFOz7v432c8W+B1XwE5WJPk5 to0D1MM6igTyyo4/+0gIJ3s9R5I6/zfJTPHD6gfpjeFRbV0u/M7qRcK5FmDrec+7OnRa hrSR+yy8/caAHcEz/yfVcOhhXexoP5Zd0R9SfDw3g36F1eVj6dQSWR9ARHKP6Gz1q5Cc wETy08W4jm3TXQWabABYZbzgSiMkb9bI81TE4lS9B2YrtVHGhe8ppOibZP2HUkPrvLGQ 7TWqL5OwDD4DlTq1azGOQg+MiqnACKRey7amXZvFzN+9wHUuzNsBJbX6suEAVDnMJ/qJ KWKQ== X-Forwarded-Encrypted: i=1; AJvYcCUYVZDpNuIwlAPeeVr0WnU6pVkOox4OrUjSln0rdnCVZnZb5aPKxfxwgrIweftJVj46Zmv9PabfTz3Wo6lYZcAhmANZLCto3AI0VjPM X-Gm-Message-State: AOJu0Yyif89J+qXHDufvRRTU+RW7U2FjwBd4f+5O3CjS8MjCfFCpNhQB U8FF+Zj28WoE6mQs/P/1Azwj+hUZzBAA/JqgLNhILi9KPoR5x7nwZR4ow02eksbl4lypf1wiLHx 27AqLh5dIrE7cAsSirMLSliI26DWVgVG/79Za5Ku2f4sFJRMqbXpDiZu+iNZehw== X-Received: by 2002:a05:6358:e491:b0:178:75b1:c403 with SMTP id by17-20020a056358e49100b0017875b1c403mr9350602rwb.9.1708911804944; Sun, 25 Feb 2024 17:43:24 -0800 (PST) X-Received: by 2002:a05:6358:e491:b0:178:75b1:c403 with SMTP id by17-20020a056358e49100b0017875b1c403mr9350595rwb.9.1708911804680; Sun, 25 Feb 2024 17:43:24 -0800 (PST) Received: from [10.72.112.131] ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id li16-20020a17090b48d000b0029ab712f648sm1409442pjb.38.2024.02.25.17.43.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Feb 2024 17:43:24 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2024 09:43:19 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ceph: remove SLAB_MEM_SPREAD flag usage Content-Language: en-US To: chengming.zhou@linux.dev, idryomov@gmail.com, jlayton@kernel.org Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vbabka@suse.cz, roman.gushchin@linux.dev, Xiongwei.Song@windriver.com, Chengming Zhou References: <20240224134715.829225-1-chengming.zhou@linux.dev> From: Xiubo Li In-Reply-To: <20240224134715.829225-1-chengming.zhou@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Chengming, Thanks for your patch. BTW, could you share the link of the relevant patches to mark this a no-op ? Thanks - Xiubo On 2/24/24 21:47, chengming.zhou@linux.dev wrote: > From: Chengming Zhou > > The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove > its usage so we can delete it from slab. No functional change. > > Signed-off-by: Chengming Zhou > --- > fs/ceph/super.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/fs/ceph/super.c b/fs/ceph/super.c > index 5ec102f6b1ac..4dcbbaa297f6 100644 > --- a/fs/ceph/super.c > +++ b/fs/ceph/super.c > @@ -928,36 +928,36 @@ static int __init init_caches(void) > ceph_inode_cachep = kmem_cache_create("ceph_inode_info", > sizeof(struct ceph_inode_info), > __alignof__(struct ceph_inode_info), > - SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD| > - SLAB_ACCOUNT, ceph_inode_init_once); > + SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT, > + ceph_inode_init_once); > if (!ceph_inode_cachep) > return -ENOMEM; > > - ceph_cap_cachep = KMEM_CACHE(ceph_cap, SLAB_MEM_SPREAD); > + ceph_cap_cachep = KMEM_CACHE(ceph_cap, 0); > if (!ceph_cap_cachep) > goto bad_cap; > - ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, SLAB_MEM_SPREAD); > + ceph_cap_snap_cachep = KMEM_CACHE(ceph_cap_snap, 0); > if (!ceph_cap_snap_cachep) > goto bad_cap_snap; > ceph_cap_flush_cachep = KMEM_CACHE(ceph_cap_flush, > - SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD); > + SLAB_RECLAIM_ACCOUNT); > if (!ceph_cap_flush_cachep) > goto bad_cap_flush; > > ceph_dentry_cachep = KMEM_CACHE(ceph_dentry_info, > - SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD); > + SLAB_RECLAIM_ACCOUNT); > if (!ceph_dentry_cachep) > goto bad_dentry; > > - ceph_file_cachep = KMEM_CACHE(ceph_file_info, SLAB_MEM_SPREAD); > + ceph_file_cachep = KMEM_CACHE(ceph_file_info, 0); > if (!ceph_file_cachep) > goto bad_file; > > - ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, SLAB_MEM_SPREAD); > + ceph_dir_file_cachep = KMEM_CACHE(ceph_dir_file_info, 0); > if (!ceph_dir_file_cachep) > goto bad_dir_file; > > - ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, SLAB_MEM_SPREAD); > + ceph_mds_request_cachep = KMEM_CACHE(ceph_mds_request, 0); > if (!ceph_mds_request_cachep) > goto bad_mds_req; >