+33
−2
Loading
maillist inclusion category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/I9IA1I CVE: NA Reference: https://lore.kernel.org/all/20240418142008.2775308-1-zhangpeng362@huawei.com/ -------------------------------- Depending on whether counters is NULL, we can support two modes: atomic mode and perpcu mode. We implement both modes by grouping the s64 count and atomic64_t count_atomic in a union. At the same time, we create the interface for adding and reading in atomic mode and for switching atomic mode to percpu mode. Suggested-by:Jan Kara <jack@suse.cz> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com> Signed-off-by:
Kefeng Wang <wangkefeng.wang@huawei.com>