diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-02-26 11:45:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 13:59:38 +0100 |
commit | ac29982167d67ca5853ebfa4cc9cd8e08b2382a1 (patch) | |
tree | d7c4e5c93d55550e9d50ace1127de0c0476d5761 /fs/fuse | |
parent | 5a2581b963c7a27e60b39edad05ffb125b51651a (diff) | |
download | lwn-ac29982167d67ca5853ebfa4cc9cd8e08b2382a1.tar.gz lwn-ac29982167d67ca5853ebfa4cc9cd8e08b2382a1.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: Greg Kroah-Hartman <gregkh@linuxfoundation.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 ed19a7d622fa..816086d5f116 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); |