cregit-Linux how code gets into the kernel

Release 4.7 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);
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) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki18100.00%2100.00%
Total18100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki1392.86%266.67%
bob liubob 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 hiroyukikamezawa hiroyuki17100.00%1100.00%
Total17100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki11100.00%1100.00%
Total11100.00%1100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
kamezawa hiroyukikamezawa hiroyuki11179.86%333.33%
daisuke nishimuradaisuke nishimura1712.23%111.11%
johannes weinerjohannes weiner53.60%222.22%
andrew mortonandrew morton21.44%111.11%
bob liubob liu21.44%111.11%
jaswinder singh rajputjaswinder singh rajput21.44%111.11%
Total139100.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.
{% endraw %}