summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2015-02-26 11:45:47 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-03-30 11:10:41 +0100
commit97941a9c48dc47c9b6682f724c65967cd3a238ef (patch)
tree956befbcab2bdc73c4184974e5502c564f95b1a6 /fs/fuse
parent96d2e901a5e43aeae47c7e0f4983fda439fbaa28 (diff)
downloadlinux-stable-97941a9c48dc47c9b6682f724c65967cd3a238ef.tar.gz
linux-stable-97941a9c48dc47c9b6682f724c65967cd3a238ef.tar.bz2
linux-stable-97941a9c48dc47c9b6682f724c65967cd3a238ef.zip
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 <mszeredi@suse.cz> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index a221901813a1..f2bbb8513360 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -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);