X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fpage_io.c;h=dc6ce0afbded84abdfa553300e6ac9d06e00d0a9;hb=b682b814e3cc340f905c14dff87ce8bdba7c5eba;hp=065c4480eaf0905c8631732540a118c002989f09;hpb=1f7d4f8395093021ed2262296179cfe71bd5e2ec;p=linux-2.6-microblaze.git diff --git a/mm/page_io.c b/mm/page_io.c index 065c4480eaf0..dc6ce0afbded 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -98,7 +98,7 @@ int swap_writepage(struct page *page, struct writeback_control *wbc) struct bio *bio; int ret = 0, rw = WRITE; - if (remove_exclusive_swap_page(page)) { + if (try_to_free_swap(page)) { unlock_page(page); goto out; } @@ -125,8 +125,8 @@ int swap_readpage(struct file *file, struct page *page) struct bio *bio; int ret = 0; - BUG_ON(!PageLocked(page)); - BUG_ON(PageUptodate(page)); + VM_BUG_ON(!PageLocked(page)); + VM_BUG_ON(PageUptodate(page)); bio = get_swap_bio(GFP_KERNEL, page_private(page), page, end_swap_bio_read); if (bio == NULL) {