diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 31f698862420..d8767b381b9c 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -1141,7 +1141,6 @@ EXPORT_SYMBOL(account_page_dirtied); | |||
1141 | void account_page_writeback(struct page *page) | 1141 | void account_page_writeback(struct page *page) |
1142 | { | 1142 | { |
1143 | inc_zone_page_state(page, NR_WRITEBACK); | 1143 | inc_zone_page_state(page, NR_WRITEBACK); |
1144 | inc_zone_page_state(page, NR_WRITTEN); | ||
1145 | } | 1144 | } |
1146 | EXPORT_SYMBOL(account_page_writeback); | 1145 | EXPORT_SYMBOL(account_page_writeback); |
1147 | 1146 | ||
@@ -1358,8 +1357,10 @@ int test_clear_page_writeback(struct page *page) | |||
1358 | } else { | 1357 | } else { |
1359 | ret = TestClearPageWriteback(page); | 1358 | ret = TestClearPageWriteback(page); |
1360 | } | 1359 | } |
1361 | if (ret) | 1360 | if (ret) { |
1362 | dec_zone_page_state(page, NR_WRITEBACK); | 1361 | dec_zone_page_state(page, NR_WRITEBACK); |
1362 | inc_zone_page_state(page, NR_WRITTEN); | ||
1363 | } | ||
1363 | return ret; | 1364 | return ret; |
1364 | } | 1365 | } |
1365 | 1366 | ||
@@ -1405,10 +1406,6 @@ EXPORT_SYMBOL(test_set_page_writeback); | |||
1405 | */ | 1406 | */ |
1406 | int mapping_tagged(struct address_space *mapping, int tag) | 1407 | int mapping_tagged(struct address_space *mapping, int tag) |
1407 | { | 1408 | { |
1408 | int ret; | 1409 | return radix_tree_tagged(&mapping->page_tree, tag); |
1409 | rcu_read_lock(); | ||
1410 | ret = radix_tree_tagged(&mapping->page_tree, tag); | ||
1411 | rcu_read_unlock(); | ||
1412 | return ret; | ||
1413 | } | 1410 | } |
1414 | EXPORT_SYMBOL(mapping_tagged); | 1411 | EXPORT_SYMBOL(mapping_tagged); |