diff mbox series

[5.7,1/1] fuse: fix weird page warning

Message ID 20200721185459.103445-1-andrealmeid@collabora.com (mailing list archive)
State New, archived
Headers show
Series [5.7,1/1] fuse: fix weird page warning | expand

Commit Message

André Almeida July 21, 2020, 6:54 p.m. UTC
From: Miklos Szeredi <mszeredi@redhat.com>

commit a5005c3cda6eeb6b95645e6cc32f58dafeffc976 upstream.

When PageWaiters was added, updating this check was missed.

Reported-by: Nikolaus Rath <Nikolaus@rath.org>
Reported-by: Hugh Dickins <hughd@google.com>
Fixes: 62906027091f ("mm: add PageWaiters indicating tasks are waiting for a page bit")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: André Almeida <andrealmeid@collabora.com>
---
 fs/fuse/dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Sasha Levin July 22, 2020, 8:39 p.m. UTC | #1
On Tue, Jul 21, 2020 at 03:54:59PM -0300, André Almeida wrote:
>From: Miklos Szeredi <mszeredi@redhat.com>
>
>commit a5005c3cda6eeb6b95645e6cc32f58dafeffc976 upstream.
>
>When PageWaiters was added, updating this check was missed.
>
>Reported-by: Nikolaus Rath <Nikolaus@rath.org>
>Reported-by: Hugh Dickins <hughd@google.com>
>Fixes: 62906027091f ("mm: add PageWaiters indicating tasks are waiting for a page bit")
>Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
>Signed-off-by: André Almeida <andrealmeid@collabora.com>

Queued for 5.7-4.19, thanks!
diff mbox series

Patch

diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 5c155437a455..ec02c3240176 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -771,7 +771,8 @@  static int fuse_check_page(struct page *page)
 	       1 << PG_uptodate |
 	       1 << PG_lru |
 	       1 << PG_active |
-	       1 << PG_reclaim))) {
+	       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);
 		return 1;