projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
internal.h
diff --git
a/mm/internal.h
b/mm/internal.h
index
a346ba1
..
dc95e97
100644
(file)
--- a/
mm/internal.h
+++ b/
mm/internal.h
@@
-27,8
+27,8
@@
static inline void set_page_count(struct page *page, int v)
*/
static inline void set_page_refcounted(struct page *page)
{
*/
static inline void set_page_refcounted(struct page *page)
{
- VM_BUG_ON
(PageTail(page)
);
- VM_BUG_ON
(atomic_read(&page->_count)
);
+ VM_BUG_ON
_PAGE(PageTail(page), page
);
+ VM_BUG_ON
_PAGE(atomic_read(&page->_count), page
);
set_page_count(page, 1);
}
set_page_count(page, 1);
}
@@
-46,7
+46,7
@@
static inline void __get_page_tail_foll(struct page *page,
* speculative page access (like in
* page_cache_get_speculative()) on tail pages.
*/
* speculative page access (like in
* page_cache_get_speculative()) on tail pages.
*/
- VM_BUG_ON
(atomic_read(&page->first_page->_count) <= 0
);
+ VM_BUG_ON
_PAGE(atomic_read(&page->first_page->_count) <= 0, page
);
if (get_page_head)
atomic_inc(&page->first_page->_count);
get_huge_page_tail(page);
if (get_page_head)
atomic_inc(&page->first_page->_count);
get_huge_page_tail(page);
@@
-71,7
+71,7
@@
static inline void get_page_foll(struct page *page)
* Getting a normal page or the head of a compound page
* requires to already have an elevated page->_count.
*/
* Getting a normal page or the head of a compound page
* requires to already have an elevated page->_count.
*/
- VM_BUG_ON
(atomic_read(&page->_count) <= 0
);
+ VM_BUG_ON
_PAGE(atomic_read(&page->_count) <= 0, page
);
atomic_inc(&page->_count);
}
}
atomic_inc(&page->_count);
}
}
@@
-173,7
+173,7
@@
static inline void munlock_vma_pages_all(struct vm_area_struct *vma)
static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
struct page *page)
{
static inline int mlocked_vma_newpage(struct vm_area_struct *vma,
struct page *page)
{
- VM_BUG_ON
(PageLRU(page)
);
+ VM_BUG_ON
_PAGE(PageLRU(page), page
);
if (likely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) != VM_LOCKED))
return 0;
if (likely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) != VM_LOCKED))
return 0;