UPSTREAM: fuse: use dump_page

Instead of custom page dumping, use the standard helper.

Reported-by: Matthew Wilcox <willy@infradead.org>
Change-Id: Ia4cb115a3265ad613b66c5c953f2bf917a0b270f
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi 2020-05-19 14:50:37 +02:00 • committed by Alexander Martinz
commit e86391af09
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2

View file

@ -780,8 +780,7 @@ static int fuse_check_page(struct page *page)
1 << PG_workingset |
1 << PG_reclaim |
1 << PG_waiters))) {
pr_warn("trying to steal weird page\n");
pr_warn(" page=%p index=%li flags=%08lx, count=%i, mapcount=%i, mapping=%p\n", page, page->index, page->flags, page_count(page), page_mapcount(page), page->mapping);
dump_page(page, "fuse: trying to steal weird page");
return 1;
}
return 0;