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 D642823A9AE for ; Mon, 17 Nov 2025 11:22:21 +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=1763378541; cv=none; b=lIN9zCWq1YkEVBP7mulygKSQnWgcQCQ3kgyixhKT8wpvYMj0i5V6ll+O/h3mj+KyLm0q1DQAwYJVkQxvFObkGuOzoD5aVYoj7QvSnuT0zUbMe49voPwXvM9aBaQwNX47ez0NH501mYQJxEj8awCX+kdWYqb2DzuZFyZ0jFAXnP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763378541; c=relaxed/simple; bh=K/K88MbnzvZu6qocZDTpErIcbRmT240tLVOgbvFFEzg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tWSs+KvylxO8sIV966HLokJdHnMHCD+C/1rGEmioAH5MuwbgPZKr/X2zDiCbS50twcg39yw8B1M89ABVxzGwjQgEgpVPFbikUY/YfkvvuJJkrUsYordAan9+6fVOhO4aYFNDUP7aORShSCdp3dY3ScYA1jQWnv+q18+GR7f2oN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZVsWb028; 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="ZVsWb028" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 301A5C4CEFB; Mon, 17 Nov 2025 11:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763378541; bh=K/K88MbnzvZu6qocZDTpErIcbRmT240tLVOgbvFFEzg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZVsWb028foNrBKvF0MTwI3Is61X71X/0zIkM8Rg0s7r+pHjx54NY8mJfz4WzKHEEr O1DEH8Ow6TRUtwtIM972MpooI6Gc5/fA+n5ZDV40052t5uVBMGHe0uyDr3nS/7/jTm OqbAbSbF2IvFBys2tUO0J/AKOIwzElZO1+RvHNgIKInZV/pGe3/3dyU8IsBl/n+/i4 i8Wmgzd3Yw1K5rHhic/7kraTyb+glJSVALjuuDhBkUYPGEGXW9PQJWxhp/s5h4KW+Q cEPLjtcWPb++vh9hB9E0jFLx0GQHwJz4K3S1znlV/BYWqdb8dIaCPeHieHOzL49IOF hogTrqsine+dg== Message-ID: Date: Mon, 17 Nov 2025 12:22:17 +0100 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 v2 1/2] mm/cma: Inline cma_sysfs counter hooks To: Jean Delvare , linux-mm@kvack.org Cc: LKML , Oscar Salvador , SeongJae Park References: <20251117115602.7b9c7ccd@endymion> From: "David Hildenbrand (Red Hat)" Content-Language: en-US In-Reply-To: <20251117115602.7b9c7ccd@endymion> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17.11.25 11:56, 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 > --- I would have moved them to the header, but no strong opinion Acked-by: David Hildenbrand (Red Hat) -- Cheers David