aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-08-19 04:07:49 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-08-19 04:07:49 -0400
commit94a6b8cf01c940a92f945b5fe83eb2d4cd00aefd (patch)
tree598e4b7f0b7b64db39b8e53e4aa072a8b8b7f903 /include
parent6d97e6acc354bc9b69a33a41d74fa7a601dd8122 (diff)
parent32a533f259ff439352cc6a87b7bc4cec80d401f6 (diff)
Merge branch 'rt/base' into rt/head
Diffstat (limited to 'include')
-rw-r--r--include/linux/page_cgroup.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/page_cgroup.h b/include/linux/page_cgroup.h
index 13f126c89ae8..8c933dc9d649 100644
--- a/include/linux/page_cgroup.h
+++ b/include/linux/page_cgroup.h
@@ -12,6 +12,7 @@
12 */ 12 */
13struct page_cgroup { 13struct page_cgroup {
14 unsigned long flags; 14 unsigned long flags;
15 spinlock_t lock;
15 struct mem_cgroup *mem_cgroup; 16 struct mem_cgroup *mem_cgroup;
16 struct page *page; 17 struct page *page;
17 struct list_head lru; /* per cgroup LRU list */ 18 struct list_head lru; /* per cgroup LRU list */
@@ -70,17 +71,17 @@ static inline enum zone_type page_cgroup_zid(struct page_cgroup *pc)
70 71
71static inline void lock_page_cgroup(struct page_cgroup *pc) 72static inline void lock_page_cgroup(struct page_cgroup *pc)
72{ 73{
73 bit_spin_lock(PCG_LOCK, &pc->flags); 74 spin_lock(&pc->lock);
74} 75}
75 76
76static inline int trylock_page_cgroup(struct page_cgroup *pc) 77static inline int trylock_page_cgroup(struct page_cgroup *pc)
77{ 78{
78 return bit_spin_trylock(PCG_LOCK, &pc->flags); 79 return spin_trylock(&pc->lock);
79} 80}
80 81
81static inline void unlock_page_cgroup(struct page_cgroup *pc) 82static inline void unlock_page_cgroup(struct page_cgroup *pc)
82{ 83{
83 bit_spin_unlock(PCG_LOCK, &pc->flags); 84 spin_unlock(&pc->lock);
84} 85}
85 86
86#else /* CONFIG_CGROUP_MEM_RES_CTLR */ 87#else /* CONFIG_CGROUP_MEM_RES_CTLR */