s390/mm: implement software dirty bits
[cascardo/linux.git] / include / linux / page-flags.h
index 70473da..6d53675 100644 (file)
@@ -303,21 +303,13 @@ static inline void __SetPageUptodate(struct page *page)
 
 static inline void SetPageUptodate(struct page *page)
 {
-#ifdef CONFIG_S390
-       if (!test_and_set_bit(PG_uptodate, &page->flags))
-               page_set_storage_key(page_to_phys(page), PAGE_DEFAULT_KEY, 0);
-#else
        /*
         * Memory barrier must be issued before setting the PG_uptodate bit,
         * so that all previous stores issued in order to bring the page
         * uptodate are actually visible before PageUptodate becomes true.
-        *
-        * s390 doesn't need an explicit smp_wmb here because the test and
-        * set bit already provides full barriers.
         */
        smp_wmb();
        set_bit(PG_uptodate, &(page)->flags);
-#endif
 }
 
 CLEARPAGEFLAG(Uptodate, uptodate)