diff options
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index ff235c4b79ea..5748642e9f36 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -181,7 +181,7 @@ | |||
181 | do { \ | 181 | do { \ |
182 | if (!test_and_set_bit(PG_writeback, \ | 182 | if (!test_and_set_bit(PG_writeback, \ |
183 | &(page)->flags)) \ | 183 | &(page)->flags)) \ |
184 | inc_page_state(nr_writeback); \ | 184 | inc_zone_page_state(page, NR_WRITEBACK); \ |
185 | } while (0) | 185 | } while (0) |
186 | #define TestSetPageWriteback(page) \ | 186 | #define TestSetPageWriteback(page) \ |
187 | ({ \ | 187 | ({ \ |
@@ -189,14 +189,14 @@ | |||
189 | ret = test_and_set_bit(PG_writeback, \ | 189 | ret = test_and_set_bit(PG_writeback, \ |
190 | &(page)->flags); \ | 190 | &(page)->flags); \ |
191 | if (!ret) \ | 191 | if (!ret) \ |
192 | inc_page_state(nr_writeback); \ | 192 | inc_zone_page_state(page, NR_WRITEBACK); \ |
193 | ret; \ | 193 | ret; \ |
194 | }) | 194 | }) |
195 | #define ClearPageWriteback(page) \ | 195 | #define ClearPageWriteback(page) \ |
196 | do { \ | 196 | do { \ |
197 | if (test_and_clear_bit(PG_writeback, \ | 197 | if (test_and_clear_bit(PG_writeback, \ |
198 | &(page)->flags)) \ | 198 | &(page)->flags)) \ |
199 | dec_page_state(nr_writeback); \ | 199 | dec_zone_page_state(page, NR_WRITEBACK); \ |
200 | } while (0) | 200 | } while (0) |
201 | #define TestClearPageWriteback(page) \ | 201 | #define TestClearPageWriteback(page) \ |
202 | ({ \ | 202 | ({ \ |
@@ -204,7 +204,7 @@ | |||
204 | ret = test_and_clear_bit(PG_writeback, \ | 204 | ret = test_and_clear_bit(PG_writeback, \ |
205 | &(page)->flags); \ | 205 | &(page)->flags); \ |
206 | if (ret) \ | 206 | if (ret) \ |
207 | dec_page_state(nr_writeback); \ | 207 | dec_zone_page_state(page, NR_WRITEBACK); \ |
208 | ret; \ | 208 | ret; \ |
209 | }) | 209 | }) |
210 | 210 | ||