Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95254735 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Sasha Levin
Browse files

fuse: set stolen page uptodate



[ Upstream commit aa991b3b267e24f578bac7b09cc57579b660304b ]

Regular pipe buffers' ->steal method (generic_pipe_buf_steal()) doesn't set
PG_uptodate.

Don't warn on this condition, just set the uptodate flag.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 9bda2fc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -814,8 +814,8 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)

	newpage = buf->page;

	if (WARN_ON(!PageUptodate(newpage)))
		return -EIO;
	if (!PageUptodate(newpage))
		SetPageUptodate(newpage);

	ClearPageMappedToDisk(newpage);