summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-07-21 15:54:59 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 10:16:46 +0200
commit02c4ddf1896324e1ad50e72ad2d467d2c85cf75c (patch)
tree56f7e9ec9b23cfa98dad40d7efa7555bb21173bd /fs/fuse/dev.c
parent4ab0bb841556edec284762d72043c3b30df4c080 (diff)
downloadlinux-stable-02c4ddf1896324e1ad50e72ad2d467d2c85cf75c.tar.gz
linux-stable-02c4ddf1896324e1ad50e72ad2d467d2c85cf75c.tar.bz2
linux-stable-02c4ddf1896324e1ad50e72ad2d467d2c85cf75c.zip
fuse: fix weird page warning
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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 6d39143cfa09..01e6ea11822b 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -838,7 +838,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))) {
printk(KERN_WARNING "fuse: trying to steal weird page\n");
printk(KERN_WARNING " 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;