]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memblock: allow zero threshold in validate_numa_converage()
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Fri, 29 Nov 2024 09:13:47 +0000 (11:13 +0200)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Sun, 1 Dec 2024 19:08:56 +0000 (21:08 +0200)
commit9cdc6423acb49055efb444ecd895d853a70ef931
tree4d841cba0d28219cc3aa0eeae9e4e6918b25411b
parentbcc8eda6d34934d80b96adb8dc4ff5dfc632a53a
memblock: allow zero threshold in validate_numa_converage()

Currently memblock validate_numa_converage() returns false negative when
threshold set to zero.

Make the check if the memory size with invalid node ID is greater than
the threshold exclusive to fix that.

Link: https://lore.kernel.org/all/Z0mIDBD4KLyxyOCm@kernel.org/
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
mm/memblock.c