summaryrefslogtreecommitdiff
path: root/include/linux/objagg.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-02-07 11:22:47 +0000
committerDavid S. Miller <davem@davemloft.net>2019-02-08 15:02:49 -0800
commit204f6a8c413ec41a7ec5e3f0f0590d4318f7a1f2 (patch)
tree7887c648d28055f222883582e78669bbe2ff78cd /include/linux/objagg.h
parent9069a3817d82b01b3a55da382c774e3575946130 (diff)
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>
Diffstat (limited to 'include/linux/objagg.h')
-rw-r--r--include/linux/objagg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/objagg.h b/include/linux/objagg.h
index a675286df1af..78021777df46 100644
--- a/include/linux/objagg.h
+++ b/include/linux/objagg.h
@@ -42,6 +42,7 @@ struct objagg_obj_stats_info {
};
struct objagg_stats {
+ unsigned int root_count;
unsigned int stats_info_count;
struct objagg_obj_stats_info stats_info[];
};