]> git.itanic.dy.fi Git - scan-pagemap/commit
analyzer: Avoid ignoring mappings with only one reference
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 23 Jul 2010 14:13:00 +0000 (17:13 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Fri, 23 Jul 2010 14:13:00 +0000 (17:13 +0300)
commit8f09ace2a3122118e358a40c1921b6c405a49d41
tree9e5754db8bee5bf1b48b3346a9c80f361586d9e8
parentbe25768cb39c9af0646eb2bd893af9d4f95ec372
analyzer: Avoid ignoring mappings with only one reference

The list_for_each_entry macro does not work for lists that have only
one item in it. Thus, we need a special case for lists containing only
one entry.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
analyze.c
pagemap.h