ipvs: remove unused seqcount stats
Subsystems (3)
Julian Anastasov
maintainerPATCH 4/4 ipvs: remove unused seqcount stats
Remove ustats_seq, IPVS_STAT_INC and IPVS_STAT_ADD
because they are not used. They were replaced with u64_stats.
Signed-off-by Julian Anastasov <[email protected]>
---
include/net/ip_vs.h renamed from linux/include/net/ip_vs.h +0 -15
@@ -376,22 +376,6 @@ struct ip_vs_stats {spinlock_t lock;/* spin lock */ }; -/* -* Helper Macros for per cpu -* ipvs->tot_stats->ustats.count -*/ -#define IPVS_STAT_INC (ipvs, count) \ - __this_cpu_inc((ipvs)->ustats->count) - -#define IPVS_STAT_ADD (ipvs, count, value) \ - do {\ - write_seqcount_begin(per_cpu_ptr((ipvs)->ustats_seq, \ - raw_smp_processor_id())); \ - __this_cpu_add((ipvs)->ustats->count, value); \ - write_seqcount_end(per_cpu_ptr((ipvs)->ustats_seq, \ - raw_smp_processor_id())); \ - } while (0)