Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dpercpu_counter.h19 struct percpu_counter { struct
30 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, argument
40 void percpu_counter_destroy(struct percpu_counter *fbc);
41 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
42 void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch);
43 s64 __percpu_counter_sum(struct percpu_counter *fbc);
44 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
46 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare()
51 static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount) in percpu_counter_add()
56 static inline s64 percpu_counter_sum_positive(struct percpu_counter *fbc) in percpu_counter_sum_positive()
[all …]
Dflex_proportions.h29 struct percpu_counter events;
77 struct percpu_counter events;
Dproportions.h30 struct percpu_counter events;
55 struct percpu_counter events;
Dmman.h13 extern struct percpu_counter vm_committed_as;
Dshmem_fs.h30 struct percpu_counter used_blocks; /* How many are allocated */
Dbacking-dev.h72 struct percpu_counter bdi_stat[NR_BDI_STAT_ITEMS];
Dquota.h257 struct percpu_counter counter[_DQST_DQSTAT_LAST];
Dfs.h1266 struct percpu_counter counter[SB_FREEZE_LEVELS];
/linux-4.1.27/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()
75 void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch) in __percpu_counter_add()
98 s64 __percpu_counter_sum(struct percpu_counter *fbc) in __percpu_counter_sum()
115 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, in __percpu_counter_init()
139 void percpu_counter_destroy(struct percpu_counter *fbc) in percpu_counter_destroy()
[all …]
DMakefile104 obj-$(CONFIG_SMP) += percpu_counter.o
/linux-4.1.27/fs/xfs/
Dxfs_mount.h47 struct percpu_counter m_icount; /* allocated inodes counter */
48 struct percpu_counter m_ifree; /* free inodes counter */
49 struct percpu_counter m_fdblocks; /* free block counter */
/linux-4.1.27/fs/ext4/
Dextents_status.h76 struct percpu_counter es_stats_all_cnt;
77 struct percpu_counter es_stats_shk_cnt;
Dballoc.c531 struct percpu_counter *fcc = &sbi->s_freeclusters_counter; in ext4_has_free_clusters()
532 struct percpu_counter *dcc = &sbi->s_dirtyclusters_counter; in ext4_has_free_clusters()
Dext4.h1286 struct percpu_counter s_freeclusters_counter;
1287 struct percpu_counter s_freeinodes_counter;
1288 struct percpu_counter s_dirs_counter;
1289 struct percpu_counter s_dirtyclusters_counter;
/linux-4.1.27/Documentation/cgroups/
Dcpuacct.txt42 cpuacct controller uses percpu_counter interface to collect user and
49 due to the batch processing nature of percpu_counter.
/linux-4.1.27/include/net/
Ddst_ops.h38 struct percpu_counter pcpuc_entries ____cacheline_aligned_in_smp;
Dinet_frag.h10 struct percpu_counter mem ____cacheline_aligned_in_smp;
Dtcp.h52 extern struct percpu_counter tcp_orphan_count;
286 extern struct percpu_counter tcp_sockets_allocated;
316 struct percpu_counter *ocp = sk->sk_prot->orphan_count; in tcp_too_many_orphans()
Dsock.h1004 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1022 struct percpu_counter *orphan_count;
1067 struct percpu_counter sockets_allocated; /* Current number of sockets. */
/linux-4.1.27/fs/ext2/
Dext2.h97 struct percpu_counter s_freeblocks_counter;
98 struct percpu_counter s_freeinodes_counter;
99 struct percpu_counter s_dirs_counter;
/linux-4.1.27/fs/ext3/
Dext3.h659 struct percpu_counter s_freeblocks_counter;
660 struct percpu_counter s_freeinodes_counter;
661 struct percpu_counter s_dirs_counter;
/linux-4.1.27/fs/
Dfile_table.c42 static struct percpu_counter nr_files __cacheline_aligned_in_smp;
/linux-4.1.27/include/net/sctp/
Dsctp.h110 extern struct percpu_counter sctp_sockets_allocated;
/linux-4.1.27/net/dccp/
Ddccp.h54 extern struct percpu_counter dccp_orphan_count;
Dproto.c44 struct percpu_counter dccp_orphan_count;
/linux-4.1.27/fs/btrfs/
Dctree.h1182 struct percpu_counter total_bytes_pinned;
1634 struct percpu_counter dirty_metadata_bytes;
1635 struct percpu_counter delalloc_bytes;
1771 struct percpu_counter bio_counter;
1795 struct percpu_counter counter;
/linux-4.1.27/net/ipv4/
Dtcp.c291 struct percpu_counter tcp_orphan_count;
308 struct percpu_counter tcp_sockets_allocated;
/linux-4.1.27/mm/
Dnommu.c67 struct percpu_counter vm_committed_as;
Dmmap.c121 struct percpu_counter vm_committed_as ____cacheline_aligned_in_smp;
/linux-4.1.27/arch/x86/kvm/
Dmmu.c169 static struct percpu_counter kvm_total_used_mmu_pages;
/linux-4.1.27/net/sctp/
Dsocket.c107 struct percpu_counter sctp_sockets_allocated;