cregit-Linux how code gets into the kernel

Release 4.15 include/linux/swap_cgroup.h

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

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.35%330.00%
Daisuke Nishimura1711.49%110.00%
Huang Ying85.41%110.00%
Johannes Weiner32.03%110.00%
Andrew Morton21.35%110.00%
Bob Liu21.35%110.00%
Jaswinder Singh Rajput21.35%110.00%
Greg Kroah-Hartman10.68%110.00%
Total148100.00%10100.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.