Lines Matching refs:pc
32 static inline int PageCgroup##uname(struct page_cgroup *pc) \
33 { return test_bit(PCG_##lname, &pc->flags); }
36 static inline void SetPageCgroup##uname(struct page_cgroup *pc)\
37 { set_bit(PCG_##lname, &pc->flags); }
40 static inline void ClearPageCgroup##uname(struct page_cgroup *pc) \
41 { clear_bit(PCG_##lname, &pc->flags); }
49 static inline int page_cgroup_nid(struct page_cgroup *pc) in TESTPCGFLAG()
51 return page_to_nid(pc->page); in TESTPCGFLAG()
54 static inline enum zone_type page_cgroup_zid(struct page_cgroup *pc) in page_cgroup_zid() argument
56 return page_zonenum(pc->page); in page_cgroup_zid()
59 static inline void lock_page_cgroup(struct page_cgroup *pc) in lock_page_cgroup() argument
61 bit_spin_lock(PCG_LOCK, &pc->flags); in lock_page_cgroup()
64 static inline int trylock_page_cgroup(struct page_cgroup *pc) in trylock_page_cgroup() argument
66 return bit_spin_trylock(PCG_LOCK, &pc->flags); in trylock_page_cgroup()
69 static inline void unlock_page_cgroup(struct page_cgroup *pc) in unlock_page_cgroup() argument
71 bit_spin_unlock(PCG_LOCK, &pc->flags); in unlock_page_cgroup()