cregit-Linux how code gets into the kernel

Release 4.12 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 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 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 Hiroyuki11381.29%337.50%
Daisuke Nishimura1712.23%112.50%
Johannes Weiner32.16%112.50%
Jaswinder Singh Rajput21.44%112.50%
Andrew Morton21.44%112.50%
Bob Liu21.44%112.50%
Total139100.00%8100.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.