lib: objagg: add root count to stats
authorJiri Pirko <jiri@mellanox.com>
Thu, 7 Feb 2019 11:22:47 +0000 (11:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 23:02:49 +0000 (15:02 -0800)
commit204f6a8c413ec41a7ec5e3f0f0590d4318f7a1f2
tree7887c648d28055f222883582e78669bbe2ff78cd
parent9069a3817d82b01b3a55da382c774e3575946130
lib: objagg: add root count to stats

Count number of roots and add it to stats. It is handy for the library
user to have this stats available as it can act upon it without
counting roots itself.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/objagg.h
lib/objagg.c