From e86391af094d9d1408bc7a5dacf8908f7f8be8ce Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 19 May 2020 14:50:37 +0200 Subject: [PATCH] UPSTREAM: fuse: use dump_page Instead of custom page dumping, use the standard helper. Reported-by: Matthew Wilcox Change-Id: Ia4cb115a3265ad613b66c5c953f2bf917a0b270f Signed-off-by: Miklos Szeredi --- fs/fuse/dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 59ecb5f3f955..ad7a72cf6bfd 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -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;