]> 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>
Sat, 17 Aug 2024 00:52:38 +0000 (17:52 -0700)
commit9e516a94e720f0313779ca610fe6c422feb156aa
treeef3691fd471c55736ad786e4dd5bde2f2626b978
parent16d137c59f7ca6c94d09f24a9930a29d982a1faa
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