diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index a82fbe4c9e8e..c73535c914cc 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -740,7 +740,7 @@ void unlock_page(struct page *page) | |||
740 | { | 740 | { |
741 | VM_BUG_ON_PAGE(!PageLocked(page), page); | 741 | VM_BUG_ON_PAGE(!PageLocked(page), page); |
742 | clear_bit_unlock(PG_locked, &page->flags); | 742 | clear_bit_unlock(PG_locked, &page->flags); |
743 | smp_mb__after_clear_bit(); | 743 | smp_mb__after_atomic(); |
744 | wake_up_page(page, PG_locked); | 744 | wake_up_page(page, PG_locked); |
745 | } | 745 | } |
746 | EXPORT_SYMBOL(unlock_page); | 746 | EXPORT_SYMBOL(unlock_page); |
@@ -757,7 +757,7 @@ void end_page_writeback(struct page *page) | |||
757 | if (!test_clear_page_writeback(page)) | 757 | if (!test_clear_page_writeback(page)) |
758 | BUG(); | 758 | BUG(); |
759 | 759 | ||
760 | smp_mb__after_clear_bit(); | 760 | smp_mb__after_atomic(); |
761 | wake_up_page(page, PG_writeback); | 761 | wake_up_page(page, PG_writeback); |
762 | } | 762 | } |
763 | EXPORT_SYMBOL(end_page_writeback); | 763 | EXPORT_SYMBOL(end_page_writeback); |