diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-02 22:40:37 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-02 22:40:37 -0400 |
commit | cbfc277a9d7639e5cd875de96c9bd8c66f1141ba (patch) | |
tree | 4acc7f818e15cbd778f12f8fba75ae17395a5ee1 /litmus | |
parent | 6e515de45f1ad108a8ae08d0be1b6f7bf2a707b6 (diff) |
Decrease max number of colors and fix typos.
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/color.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/color.c b/litmus/color.c index ecc191137137..a68c30c0edb0 100644 --- a/litmus/color.c +++ b/litmus/color.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * This is used only to "trick" lockdep into permitting dynamically allocated | 21 | * This is used only to "trick" lockdep into permitting dynamically allocated |
22 | * locks of different classes that are initialized on the same line. | 22 | * locks of different classes that are initialized on the same line. |
23 | */ | 23 | */ |
24 | #define LOCKDEP_MAX_NR_COLORS 512 | 24 | #define LOCKDEP_MAX_NR_COLORS 128 |
25 | static struct lock_class_key color_lock_keys[LOCKDEP_MAX_NR_COLORS]; | 25 | static struct lock_class_key color_lock_keys[LOCKDEP_MAX_NR_COLORS]; |
26 | 26 | ||
27 | struct color_group { | 27 | struct color_group { |
@@ -61,7 +61,7 @@ void add_page_to_color_list(struct page *page) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | /* | 63 | /* |
64 | * Increase's page's count to two. | 64 | * Increases page's count to two. |
65 | */ | 65 | */ |
66 | struct page* get_colored_page(unsigned long color) | 66 | struct page* get_colored_page(unsigned long color) |
67 | { | 67 | { |
@@ -171,7 +171,7 @@ static struct alloced_page * new_alloced_page(struct page *page, | |||
171 | } | 171 | } |
172 | 172 | ||
173 | /* | 173 | /* |
174 | * Page's count should be two or more. It should not be on aly LRU list. | 174 | * Page's count should be two or more. It should not be on any LRU list. |
175 | */ | 175 | */ |
176 | void add_page_to_alloced_list(struct page *page, struct vm_area_struct *vma) | 176 | void add_page_to_alloced_list(struct page *page, struct vm_area_struct *vma) |
177 | { | 177 | { |