diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 902a14842b74..8156f95ec0cf 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -285,8 +285,8 @@ static int shmem_add_to_page_cache(struct page *page, | |||
285 | { | 285 | { |
286 | int error; | 286 | int error; |
287 | 287 | ||
288 | VM_BUG_ON(!PageLocked(page)); | 288 | VM_BUG_ON_PAGE(!PageLocked(page), page); |
289 | VM_BUG_ON(!PageSwapBacked(page)); | 289 | VM_BUG_ON_PAGE(!PageSwapBacked(page), page); |
290 | 290 | ||
291 | page_cache_get(page); | 291 | page_cache_get(page); |
292 | page->mapping = mapping; | 292 | page->mapping = mapping; |
@@ -491,7 +491,7 @@ static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, | |||
491 | continue; | 491 | continue; |
492 | if (!unfalloc || !PageUptodate(page)) { | 492 | if (!unfalloc || !PageUptodate(page)) { |
493 | if (page->mapping == mapping) { | 493 | if (page->mapping == mapping) { |
494 | VM_BUG_ON(PageWriteback(page)); | 494 | VM_BUG_ON_PAGE(PageWriteback(page), page); |
495 | truncate_inode_page(mapping, page); | 495 | truncate_inode_page(mapping, page); |
496 | } | 496 | } |
497 | } | 497 | } |
@@ -568,7 +568,7 @@ static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, | |||
568 | lock_page(page); | 568 | lock_page(page); |
569 | if (!unfalloc || !PageUptodate(page)) { | 569 | if (!unfalloc || !PageUptodate(page)) { |
570 | if (page->mapping == mapping) { | 570 | if (page->mapping == mapping) { |
571 | VM_BUG_ON(PageWriteback(page)); | 571 | VM_BUG_ON_PAGE(PageWriteback(page), page); |
572 | truncate_inode_page(mapping, page); | 572 | truncate_inode_page(mapping, page); |
573 | } | 573 | } |
574 | } | 574 | } |