diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-02-26 05:45:47 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-02-26 05:45:47 -0500 |
commit | aa991b3b267e24f578bac7b09cc57579b660304b (patch) | |
tree | 46088cbda7db561ca47a4187b19671088ea42727 /fs/fuse | |
parent | 0d2783626a53d4c922f82d51fa675cb5d13f0d36 (diff) |
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 <mszeredi@suse.cz>
Cc: stable@vger.kernel.org
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 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) | |||
890 | 890 | ||
891 | newpage = buf->page; | 891 | newpage = buf->page; |
892 | 892 | ||
893 | if (WARN_ON(!PageUptodate(newpage))) | 893 | if (!PageUptodate(newpage)) |
894 | return -EIO; | 894 | SetPageUptodate(newpage); |
895 | 895 | ||
896 | ClearPageMappedToDisk(newpage); | 896 | ClearPageMappedToDisk(newpage); |
897 | 897 | ||