Home
last modified time | relevance | path

Searched refs:percpu_counter (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v4.19/include/linux/
Dpercpu_counter.h20 struct percpu_counter { struct
31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, argument
41 void percpu_counter_destroy(struct percpu_counter *fbc);
42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
45 s64 __percpu_counter_sum(struct percpu_counter *fbc);
46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
48 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare()
53 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add()
58 static inline s64 percpu_counter_sum_positive(struct percpu_counter *fbc) in percpu_counter_sum_positive()
[all …]
Dflex_proportions.h30 struct percpu_counter events;
78 struct percpu_counter events;
Dmman.h56 extern struct percpu_counter vm_committed_as;
Dblk-cgroup.h69 struct percpu_counter cpu_cnt;
74 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR];
705 struct percpu_counter *cnt; in blkg_rwstat_add()
Dshmem_fs.h29 struct percpu_counter used_blocks; /* How many are allocated */
Dbacking-dev-defs.h121 struct percpu_counter stat[NR_WB_STAT_ITEMS];
Dquota.h267 struct percpu_counter counter[_DQST_DQSTAT_LAST];
/Linux-v4.19/lib/
Dpercpu_counter.c24 struct percpu_counter *fbc = addr; in percpu_counter_fixup_free()
41 static inline void debug_percpu_counter_activate(struct percpu_counter *fbc) in debug_percpu_counter_activate()
47 static inline void debug_percpu_counter_deactivate(struct percpu_counter *fbc) in debug_percpu_counter_deactivate()
54 static inline void debug_percpu_counter_activate(struct percpu_counter *fbc) in debug_percpu_counter_activate()
56 static inline void debug_percpu_counter_deactivate(struct percpu_counter *fbc) in debug_percpu_counter_deactivate()
60 void percpu_counter_set(struct percpu_counter *fbc, s64 amount) in percpu_counter_set()
82 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch()
105 s64 __percpu_counter_sum(struct percpu_counter *fbc) in __percpu_counter_sum()
122 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, in __percpu_counter_init()
146 void percpu_counter_destroy(struct percpu_counter *fbc) in percpu_counter_destroy()
[all …]
DMakefile143 obj-$(CONFIG_SMP) += percpu_counter.o
/Linux-v4.19/fs/ext4/
Dextents_status.h77 struct percpu_counter es_stats_all_cnt;
78 struct percpu_counter es_stats_shk_cnt;
Dballoc.c551 struct percpu_counter *fcc = &sbi->s_freeclusters_counter; in ext4_has_free_clusters()
552 struct percpu_counter *dcc = &sbi->s_dirtyclusters_counter; in ext4_has_free_clusters()
Dext4.h1384 struct percpu_counter s_freeclusters_counter;
1385 struct percpu_counter s_freeinodes_counter;
1386 struct percpu_counter s_dirs_counter;
1387 struct percpu_counter s_dirtyclusters_counter;
/Linux-v4.19/fs/xfs/
Dxfs_mount.h67 struct percpu_counter m_icount; /* allocated inodes counter */
68 struct percpu_counter m_ifree; /* free inodes counter */
69 struct percpu_counter m_fdblocks; /* free block counter */
Dxfs_buf.h109 struct percpu_counter bt_io_count;
/Linux-v4.19/Documentation/cgroup-v1/
Dcpuacct.txt42 cpuacct controller uses percpu_counter interface to collect user and
49 due to the batch processing nature of percpu_counter.
/Linux-v4.19/include/net/
Ddst_ops.h42 struct percpu_counter pcpuc_entries ____cacheline_aligned_in_smp;
Dtcp.h53 extern struct percpu_counter tcp_orphan_count;
252 extern struct percpu_counter tcp_sockets_allocated;
293 struct percpu_counter *ocp = sk->sk_prot->orphan_count; in tcp_too_many_orphans()
Dsock.h1118 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1142 struct percpu_counter *orphan_count;
/Linux-v4.19/fs/ext2/
Dext2.h100 struct percpu_counter s_freeblocks_counter;
101 struct percpu_counter s_freeinodes_counter;
102 struct percpu_counter s_dirs_counter;
/Linux-v4.19/fs/
Dfile_table.c42 static struct percpu_counter nr_files __cacheline_aligned_in_smp;
/Linux-v4.19/mm/
Dutil.c614 struct percpu_counter vm_committed_as ____cacheline_aligned_in_smp;
/Linux-v4.19/include/net/sctp/
Dsctp.h117 extern struct percpu_counter sctp_sockets_allocated;
/Linux-v4.19/net/dccp/
Ddccp.h54 extern struct percpu_counter dccp_orphan_count;
Dproto.c48 struct percpu_counter dccp_orphan_count;
/Linux-v4.19/fs/btrfs/
Dctree.h428 struct percpu_counter total_bytes_pinned;
971 struct percpu_counter dirty_metadata_bytes;
972 struct percpu_counter delalloc_bytes;
1097 struct percpu_counter bio_counter;
1136 struct percpu_counter counter;

12