diff options
Diffstat (limited to 'mm/page-writeback.c')
| -rw-r--r-- | mm/page-writeback.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 94c6d8988ab3..24de8b65fdbd 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
| @@ -1088,7 +1088,7 @@ int __set_page_dirty_nobuffers(struct page *page) | |||
| 1088 | if (!mapping) | 1088 | if (!mapping) |
| 1089 | return 1; | 1089 | return 1; |
| 1090 | 1090 | ||
| 1091 | write_lock_irq(&mapping->tree_lock); | 1091 | spin_lock_irq(&mapping->tree_lock); |
| 1092 | mapping2 = page_mapping(page); | 1092 | mapping2 = page_mapping(page); |
| 1093 | if (mapping2) { /* Race with truncate? */ | 1093 | if (mapping2) { /* Race with truncate? */ |
| 1094 | BUG_ON(mapping2 != mapping); | 1094 | BUG_ON(mapping2 != mapping); |
| @@ -1102,7 +1102,7 @@ int __set_page_dirty_nobuffers(struct page *page) | |||
| 1102 | radix_tree_tag_set(&mapping->page_tree, | 1102 | radix_tree_tag_set(&mapping->page_tree, |
| 1103 | page_index(page), PAGECACHE_TAG_DIRTY); | 1103 | page_index(page), PAGECACHE_TAG_DIRTY); |
| 1104 | } | 1104 | } |
| 1105 | write_unlock_irq(&mapping->tree_lock); | 1105 | spin_unlock_irq(&mapping->tree_lock); |
| 1106 | if (mapping->host) { | 1106 | if (mapping->host) { |
| 1107 | /* !PageAnon && !swapper_space */ | 1107 | /* !PageAnon && !swapper_space */ |
| 1108 | __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); | 1108 | __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); |
| @@ -1258,7 +1258,7 @@ int test_clear_page_writeback(struct page *page) | |||
| 1258 | struct backing_dev_info *bdi = mapping->backing_dev_info; | 1258 | struct backing_dev_info *bdi = mapping->backing_dev_info; |
| 1259 | unsigned long flags; | 1259 | unsigned long flags; |
| 1260 | 1260 | ||
| 1261 | write_lock_irqsave(&mapping->tree_lock, flags); | 1261 | spin_lock_irqsave(&mapping->tree_lock, flags); |
| 1262 | ret = TestClearPageWriteback(page); | 1262 | ret = TestClearPageWriteback(page); |
| 1263 | if (ret) { | 1263 | if (ret) { |
| 1264 | radix_tree_tag_clear(&mapping->page_tree, | 1264 | radix_tree_tag_clear(&mapping->page_tree, |
| @@ -1269,7 +1269,7 @@ int test_clear_page_writeback(struct page *page) | |||
| 1269 | __bdi_writeout_inc(bdi); | 1269 | __bdi_writeout_inc(bdi); |
| 1270 | } | 1270 | } |
| 1271 | } | 1271 | } |
| 1272 | write_unlock_irqrestore(&mapping->tree_lock, flags); | 1272 | spin_unlock_irqrestore(&mapping->tree_lock, flags); |
| 1273 | } else { | 1273 | } else { |
| 1274 | ret = TestClearPageWriteback(page); | 1274 | ret = TestClearPageWriteback(page); |
| 1275 | } | 1275 | } |
| @@ -1287,7 +1287,7 @@ int test_set_page_writeback(struct page *page) | |||
| 1287 | struct backing_dev_info *bdi = mapping->backing_dev_info; | 1287 | struct backing_dev_info *bdi = mapping->backing_dev_info; |
| 1288 | unsigned long flags; | 1288 | unsigned long flags; |
| 1289 | 1289 | ||
| 1290 | write_lock_irqsave(&mapping->tree_lock, flags); | 1290 | spin_lock_irqsave(&mapping->tree_lock, flags); |
| 1291 | ret = TestSetPageWriteback(page); | 1291 | ret = TestSetPageWriteback(page); |
| 1292 | if (!ret) { | 1292 | if (!ret) { |
| 1293 | radix_tree_tag_set(&mapping->page_tree, | 1293 | radix_tree_tag_set(&mapping->page_tree, |
| @@ -1300,7 +1300,7 @@ int test_set_page_writeback(struct page *page) | |||
| 1300 | radix_tree_tag_clear(&mapping->page_tree, | 1300 | radix_tree_tag_clear(&mapping->page_tree, |
| 1301 | page_index(page), | 1301 | page_index(page), |
| 1302 | PAGECACHE_TAG_DIRTY); | 1302 | PAGECACHE_TAG_DIRTY); |
| 1303 | write_unlock_irqrestore(&mapping->tree_lock, flags); | 1303 | spin_unlock_irqrestore(&mapping->tree_lock, flags); |
| 1304 | } else { | 1304 | } else { |
| 1305 | ret = TestSetPageWriteback(page); | 1305 | ret = TestSetPageWriteback(page); |
| 1306 | } | 1306 | } |
