Release 4.15 include/linux/swap_cgroup.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_SWAP_CGROUP_H
#define __LINUX_SWAP_CGROUP_H
#include <linux/swap.h>
#ifdef CONFIG_MEMCG_SWAP
extern unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
unsigned short old, unsigned short new);
extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id,
unsigned int nr_ents);
extern unsigned short lookup_swap_cgroup_id(swp_entry_t ent);
extern int swap_cgroup_swapon(int type, unsigned long max_pages);
extern void swap_cgroup_swapoff(int type);
#else
static inline
unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id,
unsigned int nr_ents)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 18 | 81.82% | 2 | 66.67% |
Huang Ying | 4 | 18.18% | 1 | 33.33% |
Total | 22 | 100.00% | 3 | 100.00% |
static inline
unsigned short lookup_swap_cgroup_id(swp_entry_t ent)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 13 | 92.86% | 2 | 66.67% |
Bob Liu | 1 | 7.14% | 1 | 33.33% |
Total | 14 | 100.00% | 3 | 100.00% |
static inline int
swap_cgroup_swapon(int type, unsigned long max_pages)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline void swap_cgroup_swapoff(int type)
{
return;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_MEMCG_SWAP */
#endif /* __LINUX_SWAP_CGROUP_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kamezawa Hiroyuki | 113 | 76.35% | 3 | 30.00% |
Daisuke Nishimura | 17 | 11.49% | 1 | 10.00% |
Huang Ying | 8 | 5.41% | 1 | 10.00% |
Johannes Weiner | 3 | 2.03% | 1 | 10.00% |
Andrew Morton | 2 | 1.35% | 1 | 10.00% |
Bob Liu | 2 | 1.35% | 1 | 10.00% |
Jaswinder Singh Rajput | 2 | 1.35% | 1 | 10.00% |
Greg Kroah-Hartman | 1 | 0.68% | 1 | 10.00% |
Total | 148 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.