diff options
author | Anton Blanchard <anton@samba.org> | 2011-06-13 23:31:12 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-16 17:44:46 +0200 |
commit | 5e7f23373bf9a853e9256e81e86724cdd0a33c29 (patch) | |
tree | 4e49311429c995889853d0ec0f43a3023869c227 /Documentation/memory-hotplug.txt | |
parent | VFS: Fix vfsmount overput on simultaneous automount (diff) | |
download | linux-5e7f23373bf9a853e9256e81e86724cdd0a33c29.tar.xz linux-5e7f23373bf9a853e9256e81e86724cdd0a33c29.zip |
afs: afs_fill_page reads too much, or wrong data
afs_fill_page should read the page that is about to be written but
the current implementation has a number of issues. If we aren't
extending the file we always read PAGE_CACHE_SIZE at offset 0. If we
are extending the file we try to read the entire file.
Change afs_fill_page to read PAGE_CACHE_SIZE at the right offset,
clamped to i_size.
While here, avoid calling afs_fill_page when we are doing a
PAGE_CACHE_SIZE write.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/memory-hotplug.txt')
0 files changed, 0 insertions, 0 deletions