diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-02-26 11:45:47 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-05-09 23:16:25 +0100 |
commit | 231f9006539c8cee38ec16329dfce18eebb5644e (patch) | |
tree | 59f469bfa7a57cf24eb1c29415a0af4ce5974d23 /fs/fuse | |
parent | 792ad632359f14371d5f19354e3ea69c22e0f5d0 (diff) | |
download | linux-rt-231f9006539c8cee38ec16329dfce18eebb5644e.tar.gz |
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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index a826913e88ac..81970d7e6b8d 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -717,8 +717,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); |