From nobody Thu Apr 16 09:04:03 2026 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 8C97A175A6A for ; Sat, 28 Feb 2026 20:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772309716; cv=none; b=pHVevu94cVvKk8vLx7227+/RTbdSpCj9k7+Pf1nmV1c267y6ZvQt7NNYszm78c+IJy/NJMnuEzybH/jT3GN8r6uuDxJgupt+/YxqCOyxdzKnpBJGQ4hgNb4RWBqM3ZgaOBk5bEaybU0s6uw8bmOhnea7vMHelSTK0/FXHA++amk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772309716; c=relaxed/simple; bh=kNJETkNt6XD6Dfl8SShhwpOp7jBBMdmG1jzcXxj377Q=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=hDdxCYrQnnKyznLNhj6h1OSaynvV8KOj4YynQySyZ29IYw/ZXZKXH8wSwtc4MJBpusDFbV5kRQc6zG6rIySgeFyEpJz9Z/aAXeLqR9WegMM5PYAILMAEwrqJuS8NvB6TYrakAwyVOI77GdOMLwSJXcMzeDDVLKJh4+3jdRwLnek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--kuniyu.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hFx3YmpF; arc=none smtp.client-ip=209.85.214.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--kuniyu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hFx3YmpF" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2ae04f58b19so192513435ad.0 for ; Sat, 28 Feb 2026 12:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772309715; x=1772914515; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=+1l77ROHVrYnIJu7/SbY4bBO+iFzbL+oFxXs1/Hwx98=; b=hFx3YmpF6JckWlzGeLmInE16+UIYIPxLbOrtTeKb6zIh9NLb3Jmeucv3o+cAAL66Pk zls4ya8Adv7siRBsBY7gjj5ln433UQLY0/Mb/EtbLsz3S8VS8WbFUfEbTD//uerMpQM6 tJvpzo2ngJ+i6vrtLydr0YGmAEjJyWebHD9r2dBoo/WPDDRUm4i6kc+3+/ToEzVVy9Jd sNuvW3juijH3G5kOrfbUorE5qpPbgJLYR9Ld5N6KI9ATtg9nWTqlA7HcVfFaKKwFqSfy G6MA/xBCbD97pR5JXppjBOzL4LHUfJQt7WB7kFS5knou97kbVomoZAHhAt2Dk8xzII3o iv3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772309715; x=1772914515; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+1l77ROHVrYnIJu7/SbY4bBO+iFzbL+oFxXs1/Hwx98=; b=riMNhIibsOEXULQ108O7OJRAvZkjP2PdZnzCdn6GIdl/oFBIo7nh/wK0lLXRDL3Jg2 xD3ECqLVO8662sFGHruPy+30kOBWJ+RAoat00ucWD9AZmo2e6ZdHWQ8h9rd8vzjDlgs1 FG+vwN68wDYqMN5fSvufQIKN2mIGjGfRl+aIUZN45o7TVZtdVQ1YQ9V9oqPqZ9hFaqMo OIstSxqmL/RB/p4Ye2hGRnGpm443NCTJAWgkk47ximgE0thP8gAmqRxKh32aNdSdHAL6 BLEdxqPjF9jD+duE4JI1/tR7lYIY3Mr1lWq8VAuhPsJQEkEljXA8bo3yg+WAW0GbT6AN vUqA== X-Forwarded-Encrypted: i=1; AJvYcCUseQG8F/JTxPk67DmQ/PLRmULPji4CPD16Tqpdusqx4Kslpb+4OoUXQU3prD0upaf3eh9bi/oxR10QSjI=@vger.kernel.org X-Gm-Message-State: AOJu0YxtOv6YxLzk/dJhPTyLMDqHeZi6suB3VICRuDg8Zqkl2n96pFU5 97950fOyGjKzof87iKJxclvu0mmt8jCPYy8zWFWgTp955/8+UxAp1Zn8rB+60jhV8LEVwqzqa3D cKcXOWA== X-Received: from plbm2.prod.google.com ([2002:a17:902:d182:b0:2ae:3999:969a]) (user=kuniyu job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:ab93:b0:2ad:d5d7:bad2 with SMTP id d9443c01a7336-2ae2e4d67dfmr44403665ad.48.1772309714615; Sat, 28 Feb 2026 12:15:14 -0800 (PST) Date: Sat, 28 Feb 2026 20:15:07 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.473.g4a7958ca14-goog Message-ID: <20260228201510.973702-1-kuniyu@google.com> Subject: [PATCH] slab: Update stale comment for sheaf_capacity. From: Kuniyuki Iwashima To: Vlastimil Babka , Andrew Morton Cc: Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , Kuniyuki Iwashima , Kuniyuki Iwashima , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The comment for sheaf_capacity says it does not enforce NUMA placement, but it's not true since commit 4ec1a08d2031 ("slab: allow NUMA restricted allocations to use percpu sheaves"). Let's update the comment. Signed-off-by: Kuniyuki Iwashima Acked-by: Harry Yoo --- include/linux/slab.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 15a60b501b95..7477109eb315 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -359,9 +359,8 @@ struct kmem_cache_args { * may replace it with an empty sheaf, unless it's over capacity. In * that case a sheaf is bulk freed to slab pages. * - * The sheaves do not enforce NUMA placement of objects, so allocations - * via kmem_cache_alloc_node() with a node specified other than - * NUMA_NO_NODE will bypass them. + * The sheaves try to enforce NUMA placement of objects, but the + * allocation may fall back to the normal operation. * * Bulk allocation and free operations also try to use the cpu sheaves * and barn, but fallback to using slab pages directly. --=20 2.53.0.473.g4a7958ca14-goog