projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d27836
)
fuse: set stolen page uptodate
author
Miklos Szeredi
<mszeredi@suse.cz>
Thu, 26 Feb 2015 10:45:47 +0000
(11:45 +0100)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Thu, 26 Feb 2015 10:45:47 +0000
(11:45 +0100)
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
fs/fuse/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index b0d7e13fae3df728b00839e5636c997ee4904938..71c4619af3330671bf4c41bbc9ce1cee4f9dd5d8 100644
(file)
--- 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);