From mboxrd@z Thu Jan 1 00:00:00 1970 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 0C7851CD2D for ; Tue, 26 Mar 2024 17:33:16 +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=1711474397; cv=none; b=hWCz6xLaGZqX+Vpv76B9Whv2SCQwdP6MbCGIZuPJl63RfgvoD3Gaav15xhdntCdv0J2bGfnq0NZyscQA8ZZANl7IETuB+iQtsjAz/1xl3BegvhnvENmkkuJBJHWM+rDM1kj7stLmiBzjicv5Yl8/m1xpKoOtyJrSHk3VlPgGsn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711474397; c=relaxed/simple; bh=A4W9NkeL4SqI0Nxei+oIQ5wA6NWT8IY5yqEh9Ua2fTg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QLbdwJAWXo00/2Vgh44eA1jWTSPPUaa1mDxQq6JS1+IxJ3i9QATrfTYac3ZGVF0rgaKRvkjpaJ2c5u0VOrhh3B5uNSVKJhbLUAD7SEHfqMl+Rh3paYMTSOjRkTEeNtGz8Sjoot3joxcW/b54FnzQGMOFvDAmJ/4uyaFkYRpbBj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63FA4C43390; Tue, 26 Mar 2024 17:33:15 +0000 (UTC) Date: Tue, 26 Mar 2024 17:33:12 +0000 From: Catalin Marinas To: Waiman Long Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm/kmemleak: Compact kmemleak_object further Message-ID: References: <20240307190548.963626-1-longman@redhat.com> <20240307190548.963626-2-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240307190548.963626-2-longman@redhat.com> On Thu, Mar 07, 2024 at 02:05:47PM -0500, Waiman Long wrote: > With commit 56a61617dd22 ("mm: use stack_depot for recording kmemleak's > backtrace"), the size of kmemleak_object has been reduced by 128 bytes > for 64-bit arches. The replacement "depot_stack_handle_t trace_handle" > is actually just 4 bytes long leaving a hole of 4 bytes. By moving up > trace_handle to another existing 4-byte hold, we can save 8 more bytes > from kmemleak_object reducing its overall size from 248 to 240 bytes. > > Signed-off-by: Waiman Long Acked-by: Catalin Marinas