From patchwork Sat Feb 24 01:12:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 205743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp932654dyb; Fri, 23 Feb 2024 17:12:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGeo/w6Sb98dIZH97lgp6t18rH1R8aINYnr43fDHM3mAS+d7zZzSiUrsHD4BPhrin54b2Yg6UQI1HIOf3PzQlDBPFt6A== X-Google-Smtp-Source: AGHT+IG73QfprHaMbU+tZU7EE6xBlwh66qV+DytYE0uxikUewfUvvcHWnBbuq7tUBbv8VWWHI1lK X-Received: by 2002:a92:b70a:0:b0:365:10dd:d1aa with SMTP id k10-20020a92b70a000000b0036510ddd1aamr1689313ili.16.1708737155227; Fri, 23 Feb 2024 17:12:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708737155; cv=pass; d=google.com; s=arc-20160816; b=WshNrpOMfcZmQRONoFPsvYLKHpGt5m/DaaBvIbPhzwt2zYiIwfrRUqhEwG4fCnnCKB rMM7MFqYQRJN3h2a25xttOBtRFl1ThorcC842ZvOiVWy1SAZBhwT0tRgEJxRsEObsfou ld2Xt811hvoCQdCOAZYsOTykj3MEMlC2POmCtKhuxucRPe6rcOKYsu6NZsE8FergjBfZ 5cb13g2NvlHscoU9SHEfH8Pxt4+toAeUhXQqWauNGxA84V2g/ig5KVTuFOQfbdA1peH8 ykf+8p21ituBFOeg1WfEdvoROd0A5RfB8csql6TNT5NzvGiih8nMDKYR4G9NHahfzPFJ xhJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:cc:to:from:subject:date:dkim-signature; bh=AHQWsQmgCV4CCi9neGMG3xl9anrjZ7Lsq2V8TearoOs=; fh=eGotrG2wUAPCtJbO4MhMKF1jcndrbQy7pSZLLDRnPjs=; b=DWEF8657D3GxKes6QqoH2TcV+P5lMroafG+1Dnlpj+3dACC5LZg4bTy6eeDrZE4QhI xEg9r3PTrxL+7VYYFEXSuIsqHQ6SmGVx0D0/ghs6a4nubmhpjrCIsoXi5g8LhwdEIPXJ o/5s7Iiwf744iuiUlahCq2klpmTPNvNYGJXYfEx8usq77IoCbLyNO3VlayyCltQNV6Sj uDavoGDtDCi5eKFx01rPyP7Ord3DVdSriDAGeFVFMCwC1XIkXBc7wu6p/0imuB51JG6K FQsKbmDKCoiU6D6ffi3lF8EpkBpJyuVynzUyiBSuObho0RMWhDHDqnfEX9qh2iyZoUp0 IqhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qKwgcty8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79398-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79398-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o2-20020a635a02000000b005dbd518e89esi141647pgb.761.2024.02.23.17.12.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 17:12:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79398-ouuuleilei=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=@kernel.org header.s=k20201202 header.b=qKwgcty8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79398-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79398-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 0B2B0282179 for ; Sat, 24 Feb 2024 01:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5883E15B7; Sat, 24 Feb 2024 01:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qKwgcty8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B944817F5; Sat, 24 Feb 2024 01:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708737131; cv=none; b=oiIfhT2EKdyD1QMcmnQa3OnUxVCdXl7mTWda0KkFbpUWF5feBjTuXCHPtHWxw81rj4fzGUlNii/BQsnUSJRLSTD8QFz2HkohFAYdRgeALW0xhMvkNHLnJM8f8K87qvdD+j7x2Iv2wADXS1+vOJ9n2L/m6KdcrSadqU+xWKTwCEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708737131; c=relaxed/simple; bh=t+a3dnfPOx4IIRgsSK8ZjS4LDPymxs2saneliaxtiAI=; h=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WmihWYLJmgoeYrdxB3jIQjBHeFiJgrKuqF6jSGZaqNE23CEOPuk7z3UTZLLiS32qoj7i1AvA+fwc5/tUEU40Ge6sw+NbMkW3j1ttR6PHGUZorS/eza6IFpO9anLJBrsEFsDiiqp8vb/tSOe+ZMCsTIe43wF4F2/OYAcGCMNTRhc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qKwgcty8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30C49C433F1; Sat, 24 Feb 2024 01:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708737131; bh=t+a3dnfPOx4IIRgsSK8ZjS4LDPymxs2saneliaxtiAI=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=qKwgcty81/ZnYzIwfilwTthfSCEWrkWCGo05LxbzB79HvDWq5LrQdFFYzCa0h9V39 /Aklm9osV/suDs8g2Q6suqPXRJEAUkiLn4Yd5yzhZoA2oogYzwymyxu7a/vPXCdo63 2Mv4eCjDKekmcSdTB1J99blmh8/aE8hrvSUmK0Vq4kUDo55t8NQzdovNdruJev5hzG 9xPSHpcL0UArzt1DTAxrC5zpQX8Z1Vq26oZ+SPwOcHKODFvAQ8M5gh0bGPFzhxHSl1 KQd1XYQ549x0i9yuE0cR6YnMKoZ+ASN9PL3zyZ5JQmZQMrUDyQOBOiZwUeGgZfhEq/ guOVIcFBmzbmQ== Date: Fri, 23 Feb 2024 17:12:10 -0800 Subject: [PATCH 08/10] time_stats: shrink time_stat_buffer for better alignment From: "Darrick J. Wong" To: akpm@linux-foundation.org, daniel@gluo.nz, kent.overstreet@linux.dev, djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <170873668069.1860949.912351762607273370.stgit@frogsfrogsfrogs> In-Reply-To: <170873667916.1860949.11027844260383646446.stgit@frogsfrogsfrogs> References: <170873667916.1860949.11027844260383646446.stgit@frogsfrogsfrogs> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791740771194741682 X-GMAIL-MSGID: 1791740771194741682 From: Darrick J. Wong Shrink this percpu object by one array element so that the object size becomes exactly 512 bytes. This will lead to more efficient memory use, hopefully. Signed-off-by: Darrick J. Wong Signed-off-by: Kent Overstreet --- include/linux/time_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/time_stats.h b/include/linux/time_stats.h index dc539123f7997..b3c810fff963a 100644 --- a/include/linux/time_stats.h +++ b/include/linux/time_stats.h @@ -63,7 +63,7 @@ struct time_stat_buffer { struct time_stat_buffer_entry { u64 start; u64 end; - } entries[32]; + } entries[31]; }; struct time_stats {