]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/buffer.c
[PATCH] Exterminate PAGE_BUG
[linux-2.6-omap-h63xx.git] / fs / buffer.c
index 188365c79204da7881b8b3e51b27c85dd53777f2..792cbacbbf41fd06b1eeb8660a5e103e87c3ca71 100644 (file)
@@ -2078,8 +2078,7 @@ int block_read_full_page(struct page *page, get_block_t *get_block)
        int nr, i;
        int fully_mapped = 1;
 
-       if (!PageLocked(page))
-               PAGE_BUG(page);
+       BUG_ON(!PageLocked(page));
        blocksize = 1 << inode->i_blkbits;
        if (!page_has_buffers(page))
                create_empty_buffers(page, blocksize, 0);