From: Miklos Szeredi Date: Thu, 26 Feb 2015 10:45:47 +0000 (+0100) Subject: fuse: set stolen page uptodate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa991b3b267e24f578bac7b09cc57579b660304b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fuse: set stolen page uptodate 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 Cc: stable@vger.kernel.org --- diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index b0d7e13fae3d..71c4619af333 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -890,8 +890,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);