cregit-Linux how code gets into the kernel

Release 4.7 include/linux/page_owner.h

Directory: include/linux
#ifndef __LINUX_PAGE_OWNER_H

#define __LINUX_PAGE_OWNER_H

#include <linux/jump_label.h>

#ifdef CONFIG_PAGE_OWNER
extern struct static_key_false page_owner_inited;
extern struct page_ext_operations page_owner_ops;

extern void __reset_page_owner(struct page *page, unsigned int order);
extern void __set_page_owner(struct page *page,
			unsigned int order, gfp_t gfp_mask);
extern gfp_t __get_page_owner_gfp(struct page *page);
extern void __copy_page_owner(struct page *oldpage, struct page *newpage);
extern void __set_page_owner_migrate_reason(struct page *page, int reason);
extern void __dump_page_owner(struct page *page);


static inline void reset_page_owner(struct page *page, unsigned int order) { if (static_branch_unlikely(&page_owner_inited)) __reset_page_owner(page, order); }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim2993.55%150.00%
vlastimil babkavlastimil babka26.45%150.00%
Total31100.00%2100.00%


static inline void set_page_owner(struct page *page, unsigned int order, gfp_t gfp_mask) { if (static_branch_unlikely(&page_owner_inited)) __set_page_owner(page, order, gfp_mask); }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim3494.44%150.00%
vlastimil babkavlastimil babka25.56%150.00%
Total36100.00%2100.00%


static inline gfp_t get_page_owner_gfp(struct page *page) { if (static_branch_unlikely(&page_owner_inited)) return __get_page_owner_gfp(page); else return 0; }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim2480.00%150.00%
vlastimil babkavlastimil babka620.00%150.00%
Total30100.00%2100.00%


static inline void copy_page_owner(struct page *oldpage, struct page *newpage) { if (static_branch_unlikely(&page_owner_inited)) __copy_page_owner(oldpage, newpage); }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka32100.00%1100.00%
Total32100.00%1100.00%


static inline void set_page_owner_migrate_reason(struct page *page, int reason) { if (static_branch_unlikely(&page_owner_inited)) __set_page_owner_migrate_reason(page, reason); }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka30100.00%1100.00%
Total30100.00%1100.00%


static inline void dump_page_owner(struct page *page) { if (static_branch_unlikely(&page_owner_inited)) __dump_page_owner(page); }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka25100.00%1100.00%
Total25100.00%1100.00%

#else
static inline void reset_page_owner(struct page *page, unsigned int order) { }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim15100.00%1100.00%
Total15100.00%1100.00%


static inline void set_page_owner(struct page *page, unsigned int order, gfp_t gfp_mask) { }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim18100.00%1100.00%
Total18100.00%1100.00%


static inline gfp_t get_page_owner_gfp(struct page *page) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim15100.00%1100.00%
Total15100.00%1100.00%


static inline void copy_page_owner(struct page *oldpage, struct page *newpage) { }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka16100.00%1100.00%
Total16100.00%1100.00%


static inline void set_page_owner_migrate_reason(struct page *page, int reason) { }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka14100.00%1100.00%
Total14100.00%1100.00%


static inline void dump_page_owner(struct page *page) { }

Contributors

PersonTokensPropCommitsCommitProp
vlastimil babkavlastimil babka11100.00%1100.00%
Total11100.00%1100.00%

#endif /* CONFIG_PAGE_OWNER */ #endif /* __LINUX_PAGE_OWNER_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
joonsoo kimjoonsoo kim20152.62%233.33%
vlastimil babkavlastimil babka18147.38%466.67%
Total382100.00%6100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}