Commit 231f9006 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Ben Hutchings

fuse: set stolen page uptodate

commit aa991b3b upstream.

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>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 792ad632
...@@ -717,8 +717,8 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep) ...@@ -717,8 +717,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