aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 088358c8006b..021056c324e6 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -742,7 +742,7 @@ void unlock_page(struct page *page)
742{ 742{
743 VM_BUG_ON_PAGE(!PageLocked(page), page); 743 VM_BUG_ON_PAGE(!PageLocked(page), page);
744 clear_bit_unlock(PG_locked, &page->flags); 744 clear_bit_unlock(PG_locked, &page->flags);
745 smp_mb__after_clear_bit(); 745 smp_mb__after_atomic();
746 wake_up_page(page, PG_locked); 746 wake_up_page(page, PG_locked);
747} 747}
748EXPORT_SYMBOL(unlock_page); 748EXPORT_SYMBOL(unlock_page);
@@ -759,7 +759,7 @@ void end_page_writeback(struct page *page)
759 if (!test_clear_page_writeback(page)) 759 if (!test_clear_page_writeback(page))
760 BUG(); 760 BUG();
761 761
762 smp_mb__after_clear_bit(); 762 smp_mb__after_atomic();
763 wake_up_page(page, PG_writeback); 763 wake_up_page(page, PG_writeback);
764} 764}
765EXPORT_SYMBOL(end_page_writeback); 765EXPORT_SYMBOL(end_page_writeback);