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

fuse: set stolen page uptodate

[ Upstream commit aa991b3b ]

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
...@@ -814,8 +814,8 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep) ...@@ -814,8 +814,8 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)
newpage = buf->page; newpage = buf->page;
if (WARN_ON(!PageUptodate(newpage))) if (!PageUptodate(newpage))
return -EIO; SetPageUptodate(newpage);
ClearPageMappedToDisk(newpage); ClearPageMappedToDisk(newpage);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment