tools headers: Update syscall.tbl files to support mount_setattr
[linux-2.6-microblaze.git] / mm / page_io.c
index 92f7941..c493ce9 100644 (file)
@@ -41,9 +41,9 @@ void end_swap_bio_write(struct bio *bio)
                 * Also clear PG_reclaim to avoid rotate_reclaimable_page()
                 */
                set_page_dirty(page);
-               pr_alert("Write-error on swap-device (%u:%u:%llu)\n",
-                        MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
-                        (unsigned long long)bio->bi_iter.bi_sector);
+               pr_alert_ratelimited("Write-error on swap-device (%u:%u:%llu)\n",
+                                    MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
+                                    (unsigned long long)bio->bi_iter.bi_sector);
                ClearPageReclaim(page);
        }
        end_page_writeback(page);
@@ -106,9 +106,9 @@ static void end_swap_bio_read(struct bio *bio)
        if (bio->bi_status) {
                SetPageError(page);
                ClearPageUptodate(page);
-               pr_alert("Read-error on swap-device (%u:%u:%llu)\n",
-                        MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
-                        (unsigned long long)bio->bi_iter.bi_sector);
+               pr_alert_ratelimited("Read-error on swap-device (%u:%u:%llu)\n",
+                                    MAJOR(bio_dev(bio)), MINOR(bio_dev(bio)),
+                                    (unsigned long long)bio->bi_iter.bi_sector);
                goto out;
        }
 
@@ -254,11 +254,6 @@ out:
        return ret;
 }
 
-static sector_t swap_page_sector(struct page *page)
-{
-       return (sector_t)__page_file_index(page) << (PAGE_SHIFT - 9);
-}
-
 static inline void count_swpout_vm_event(struct page *page)
 {
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE