projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53de416
)
Unionfs: clear partial read in readpage
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 9 Nov 2007 15:27:32 +0000
(10:27 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 29 Apr 2011 02:25:16 +0000
(22:25 -0400)
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/mmap.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/mmap.c
b/fs/unionfs/mmap.c
index 468dc61b9cb10ec8261414a1227c22044cc48d75..bb00fd501976fac4e141835d194a972767c02248 100644
(file)
--- a/
fs/unionfs/mmap.c
+++ b/
fs/unionfs/mmap.c
@@
-178,7
+178,8
@@
static int unionfs_do_readpage(struct file *file, struct page *page)
err = vfs_read(lower_file, page_data, PAGE_CACHE_SIZE,
&lower_file->f_pos);
set_fs(old_fs);
-
+ if (err >= 0 && err < PAGE_CACHE_SIZE)
+ memset(page_data + err, 0, PAGE_CACHE_SIZE - err);
kunmap(page);
if (err < 0)