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 5710F304BB8 for ; Tue, 18 Nov 2025 01:35:04 +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=1763429707; cv=none; b=l+TLGbk48MUkh8KXdqJ9sgLaLzQt99G7/1HcLROOONPa9xCuwXcUo4PMInb5hA9pAFYMhgTzQj8F+3oamOdbNsDfxW95rZRDTBc3P9wpdc0CPo94wFgZ/ifGsRc3adMjZCld1NVo7UZ7WNnWPB3iCnBZ/q/TLB3D/RGm6eBCNuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763429707; c=relaxed/simple; bh=vNjEVQiizwyx0ZZFgN4+71FpiOQ/CbYlv37kbyN1Apk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NQbnem8AJaGaz1Qx7IG4Qwd3JfZ7D6e716EAX8PtQvsYQi1hRuRqfevr2BGzIcKx0jJIGZGkSCZ25MTS8i3ZcpUA+b99FmYr35WUliJoQa9yodN/e2eRjREQectu8AOLMhePY4raTVm0hQ52mypEtjzDMCK7ROsytXq3KyePz9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VcenCjNg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VcenCjNg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7FDDC4AF09; Tue, 18 Nov 2025 01:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763429702; bh=vNjEVQiizwyx0ZZFgN4+71FpiOQ/CbYlv37kbyN1Apk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VcenCjNgyZjZb3iq3KdS64DsECxuUc1vrAD2ULBgTScwdwxFljgnOPm7576CCQBnf 97ZFPphC9geA4WkLslRhsJ6dtLbL5WxUhm7Aflx2JEkp6j2VcS8bRu1n4wvvAdd56d kupAj1Vdv81KSLeZ+TGaCir7A+F+2TJSlRtGsCA4urVhE+ntGsv1lEaPoHgXUPGa3C yyR4HuamgF/NVrFf2Bl8cSr5T3qpuWrMAdNfs97WsU8tXgaDzTs4i4gzr841SzG0TC WBmtkw76qM9DeQCsVKDxp+HhHnVdraT9cCX5F57GVGGgauB4KVY6Njd73hRFJx/9H0 Tk/SFqQOLJxFg== From: SeongJae Park To: Jean Delvare Cc: SeongJae Park , linux-mm@kvack.org, LKML , David Hildenbrand , Oscar Salvador Subject: Re: [PATCH v2 1/2] mm/cma: Inline cma_sysfs counter hooks Date: Mon, 17 Nov 2025 17:34:51 -0800 Message-ID: <20251118013452.75700-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251117115602.7b9c7ccd@endymion> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, 17 Nov 2025 11:56:02 +0100 Jean Delvare wrote: > Move cma_sysfs counter hooks from cma_sysfs.c to cma.c. These > one-liner functions are only used once each, but the compiler > currently can't inline them because they are defined in one object and > used in another. Letting the compiler inline these functions lowers > the footprint and runtime cost of the sysfs interface to CMA stats > even more. > > Signed-off-by: Jean Delvare Reviewed-by: SeongJae Park Thanks, SJ [...]