]> git.baikalelectronics.ru Git - kernel.git/commit
Account the nr_entries in rblist properly
authorSuzuki K. Poulose <suzuki@in.ibm.com>
Fri, 31 Aug 2012 07:09:18 +0000 (12:39 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Oct 2012 16:20:11 +0000 (14:20 -0200)
commit26581a3f39e049b9b237ce76cf55b23cb210dcd1
treed0f58d63e0447ff86c9e1c24ec226a0adcce4e8d
parent4c7f812c43d531eafe999fa8ea8bddf2e72933b0
Account the nr_entries in rblist properly

The nr_entries in rblist is never decremented when an element
is deleted. Also, use rblist__remove_node to delete a node in
rblist__delete(). This would keep the nr_entries sane.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>
Acked-by: David S. Ahern <dsahern@gmail.com>
Cc: David S. Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/20120831070834.14806.87398.stgit@suzukikp.in.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/rblist.c