cregit-Linux how code gets into the kernel

Release 4.13 include/linux/swap_cgroup.h

Directory: include/linux
#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

PersonTokensPropCommitsCommitProp
Kamezawa Hiroyuki1881.82%266.67%
Huang Ying418.18%133.33%
Total22100.00%3100.00%


static inline unsigned short lookup_swap_cgroup_id(swp_entry_t ent) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Kamezawa Hiroyuki1392.86%266.67%
Bob Liu17.14%133.33%
Total14100.00%3100.00%


static inline int swap_cgroup_swapon(int type, unsigned long max_pages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Kamezawa Hiroyuki17100.00%1100.00%
Total17100.00%1100.00%


static inline void swap_cgroup_swapoff(int type) { return; }

Contributors

PersonTokensPropCommitsCommitProp
Kamezawa Hiroyuki11100.00%1100.00%
Total11100.00%1100.00%

#endif /* CONFIG_MEMCG_SWAP */ #endif /* __LINUX_SWAP_CGROUP_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Kamezawa Hiroyuki11376.87%333.33%
Daisuke Nishimura1711.56%111.11%
Huang Ying85.44%111.11%
Johannes Weiner32.04%111.11%
Jaswinder Singh Rajput21.36%111.11%
Andrew Morton21.36%111.11%
Bob Liu21.36%111.11%
Total147100.00%9100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.