Skip to content

Commit

Permalink
fuse: set stolen page uptodate
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Miklos Szeredi committed Feb 26, 2015
1 parent 0d27836 commit aa991b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit aa991b3

Please sign in to comment.