Skip to content
Commit 03f2f93a authored by Suzuki K. Poulose's avatar Suzuki K. Poulose Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarSuzuki K. Poulose <suzuki@in.ibm.com>
Acked-by: default avatarDavid 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 68e94f4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment