mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
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
This commit is contained in:
parent
0d2783626a
commit
aa991b3b26
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue