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
/
swapfile.c
diff --git
a/mm/swapfile.c
b/mm/swapfile.c
index
612a7c9
..
d443dea
100644
(file)
--- a/
mm/swapfile.c
+++ b/
mm/swapfile.c
@@
-906,7
+906,7
@@
int reuse_swap_page(struct page *page)
{
int count;
{
int count;
- VM_BUG_ON
(!PageLocked(page)
);
+ VM_BUG_ON
_PAGE(!PageLocked(page), page
);
if (unlikely(PageKsm(page)))
return 0;
count = page_mapcount(page);
if (unlikely(PageKsm(page)))
return 0;
count = page_mapcount(page);
@@
-926,7
+926,7
@@
int reuse_swap_page(struct page *page)
*/
int try_to_free_swap(struct page *page)
{
*/
int try_to_free_swap(struct page *page)
{
- VM_BUG_ON
(!PageLocked(page)
);
+ VM_BUG_ON
_PAGE(!PageLocked(page), page
);
if (!PageSwapCache(page))
return 0;
if (!PageSwapCache(page))
return 0;
@@
-2714,7
+2714,7
@@
struct swap_info_struct *page_swap_info(struct page *page)
*/
struct address_space *__page_file_mapping(struct page *page)
{
*/
struct address_space *__page_file_mapping(struct page *page)
{
- VM_BUG_ON
(!PageSwapCache(page)
);
+ VM_BUG_ON
_PAGE(!PageSwapCache(page), page
);
return page_swap_info(page)->swap_file->f_mapping;
}
EXPORT_SYMBOL_GPL(__page_file_mapping);
return page_swap_info(page)->swap_file->f_mapping;
}
EXPORT_SYMBOL_GPL(__page_file_mapping);
@@
-2722,7
+2722,7
@@
EXPORT_SYMBOL_GPL(__page_file_mapping);
pgoff_t __page_file_index(struct page *page)
{
swp_entry_t swap = { .val = page_private(page) };
pgoff_t __page_file_index(struct page *page)
{
swp_entry_t swap = { .val = page_private(page) };
- VM_BUG_ON
(!PageSwapCache(page)
);
+ VM_BUG_ON
_PAGE(!PageSwapCache(page), page
);
return swp_offset(swap);
}
EXPORT_SYMBOL_GPL(__page_file_index);
return swp_offset(swap);
}
EXPORT_SYMBOL_GPL(__page_file_index);