]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib: test_hmm: use min() to improve dmirror_exclusive()
authorThorsten Blum <thorsten.blum@toblux.com>
Fri, 26 Jul 2024 13:12:46 +0000 (15:12 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:52 +0000 (20:25 -0700)
commit592c9330e3692c9636adddfe17004870ae8dc434
treea7f8058bd401a2f16a4a4714af03b843552309f1
parent073ebebd186250038a04be9693240f90f398c4b1
lib: test_hmm: use min() to improve dmirror_exclusive()

Use min() to simplify the dmirror_exclusive() function and improve its
readability.

Link: https://lkml.kernel.org/r/20240726131245.161695-1-thorsten.blum@toblux.com
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_hmm.c