X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fpage_io.c;h=065c4480eaf0905c8631732540a118c002989f09;hb=e27dfcea48372a4105d9fdf2e8450926737f6215;hp=3b97f68502733edba06e5697d56ecfeb7643b8c1;hpb=37ca506adc395a028cd12760eca419dd0dc14b5c;p=karo-tx-linux.git diff --git a/mm/page_io.c b/mm/page_io.c index 3b97f6850273..065c4480eaf0 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -126,7 +126,7 @@ int swap_readpage(struct file *file, struct page *page) int ret = 0; BUG_ON(!PageLocked(page)); - ClearPageUptodate(page); + BUG_ON(PageUptodate(page)); bio = get_swap_bio(GFP_KERNEL, page_private(page), page, end_swap_bio_read); if (bio == NULL) {