Release 4.12 include/linux/page_idle.h
#ifndef _LINUX_MM_PAGE_IDLE_H
#define _LINUX_MM_PAGE_IDLE_H
#include <linux/bitops.h>
#include <linux/page-flags.h>
#include <linux/page_ext.h>
#ifdef CONFIG_IDLE_PAGE_TRACKING
#ifdef CONFIG_64BIT
static inline bool page_is_young(struct page *page)
{
return PageYoung(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
static inline void set_page_young(struct page *page)
{
SetPageYoung(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline bool test_and_clear_page_young(struct page *page)
{
return TestClearPageYoung(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
static inline bool page_is_idle(struct page *page)
{
return PageIdle(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
static inline void set_page_idle(struct page *page)
{
SetPageIdle(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
static inline void clear_page_idle(struct page *page)
{
ClearPageIdle(page);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
#else /* !CONFIG_64BIT */
/*
* If there is not enough space to store Idle and Young bits in page flags, use
* page ext flags instead.
*/
extern struct page_ext_operations page_idle_ops;
static inline bool page_is_young(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return false;
return test_bit(PAGE_EXT_YOUNG, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Yang Shi | 22 | 50.00% | 1 | 50.00% |
Vladimir Davydov | 22 | 50.00% | 1 | 50.00% |
Total | 44 | 100.00% | 2 | 100.00% |
static inline void set_page_young(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return;
set_bit(PAGE_EXT_YOUNG, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 21 | 51.22% | 1 | 50.00% |
Yang Shi | 20 | 48.78% | 1 | 50.00% |
Total | 41 | 100.00% | 2 | 100.00% |
static inline bool test_and_clear_page_young(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return false;
return test_and_clear_bit(PAGE_EXT_YOUNG, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Yang Shi | 22 | 50.00% | 1 | 50.00% |
Vladimir Davydov | 22 | 50.00% | 1 | 50.00% |
Total | 44 | 100.00% | 2 | 100.00% |
static inline bool page_is_idle(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return false;
return test_bit(PAGE_EXT_IDLE, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Yang Shi | 22 | 50.00% | 1 | 50.00% |
Vladimir Davydov | 22 | 50.00% | 1 | 50.00% |
Total | 44 | 100.00% | 2 | 100.00% |
static inline void set_page_idle(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return;
set_bit(PAGE_EXT_IDLE, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 21 | 51.22% | 1 | 50.00% |
Yang Shi | 20 | 48.78% | 1 | 50.00% |
Total | 41 | 100.00% | 2 | 100.00% |
static inline void clear_page_idle(struct page *page)
{
struct page_ext *page_ext = lookup_page_ext(page);
if (unlikely(!page_ext))
return;
clear_bit(PAGE_EXT_IDLE, &page_ext->flags);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 21 | 51.22% | 1 | 50.00% |
Yang Shi | 20 | 48.78% | 1 | 50.00% |
Total | 41 | 100.00% | 2 | 100.00% |
#endif /* CONFIG_64BIT */
#else /* !CONFIG_IDLE_PAGE_TRACKING */
static inline bool page_is_young(struct page *page)
{
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
static inline void set_page_young(struct page *page)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
static inline bool test_and_clear_page_young(struct page *page)
{
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
static inline bool page_is_idle(struct page *page)
{
return false;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
static inline void set_page_idle(struct page *page)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
static inline void clear_page_idle(struct page *page)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
#endif /* CONFIG_IDLE_PAGE_TRACKING */
#endif /* _LINUX_MM_PAGE_IDLE_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vladimir Davydov | 354 | 73.75% | 1 | 50.00% |
Yang Shi | 126 | 26.25% | 1 | 50.00% |
Total | 480 | 100.00% | 2 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.