[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <C6C36750-2C87-4C2B-B683-9789F55D34C2@linux.dev>
Date: Mon, 11 Aug 2025 11:08:34 +0200
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: David Hildenbrand <david@...hat.com>
Cc: Matthew Wilcox <willy@...radead.org>,
Muchun Song <muchun.song@...ux.dev>,
Oscar Salvador <osalvador@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/hugetlb: Use max() to simplify
hugetlb_vmemmap_optimizable_size()
On 11. Aug 2025, at 10:26, David Hildenbrand wrote:
> On 11.08.25 02:15, Matthew Wilcox wrote:
>> On Sun, Aug 10, 2025 at 11:47:45PM +0200, Thorsten Blum wrote:
>>> Use max() to simplify hugetlb_vmemmap_optimizable_size() and improve its
>>> readability.
>> That ... isn't clearer.
>
> No, it isn't.
I guess it's personal preference. I'd prefer max(0, x) over a ternary
operator any time.
Thorsten
Powered by blists - more mailing lists