]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/lsmem.c
lsmem: improve node lookup
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 4 Nov 2016 12:10:06 +0000 (13:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Nov 2016 09:02:32 +0000 (10:02 +0100)
commit51a90159dd3ee1121b87a34f6c892315633b8edb
treeeb36e948be59c05ff092ce7b55f6964573561392
parent1b0af4ba1719adba196ea897b4c0447148223676
lsmem: improve node lookup

Break the loop as soon as we found the node a memory block belongs to,
it doesn't make sense to continue scanning.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lsmem.c