From: Miklos Szeredi Date: Thu, 26 Feb 2015 10:45:47 +0000 (+0100) Subject: fuse: set stolen page uptodate X-Git-Tag: v3.12.40~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f731bbae6d8fe3786bad75e3088cf0be1d037f82;p=thirdparty%2Fkernel%2Fstable.git fuse: set stolen page uptodate commit aa991b3b267e24f578bac7b09cc57579b660304b 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: Miklos Szeredi Signed-off-by: Jiri Slaby --- diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index fc8e4991736a1..706e587cbd343 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -819,8 +819,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);