diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-09-11 12:36:29 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-09-11 13:31:08 -0400 |
commit | 93c82d575055f1bd0277acae6f966bebafd80dd5 (patch) | |
tree | 4b059485eb226291dac336921b32653131b0dd43 /fs/btrfs/file.c | |
parent | 50a9b214bc6c052caa05a210ebfc1bdf0d7085b2 (diff) |
Btrfs: zero page past end of inline file items
When btrfs_get_extent is reading inline file items for readpage,
it needs to copy the inline extent into the page. If the
inline extent doesn't cover all of the page, that means there
is a hole in the file, or that our file is smaller than one
page.
readpage does zeroing for the case where the file is smaller than one
page, but nobody is currently zeroing for the case where there is
a hole after the inline item.
This commit changes btrfs_get_extent to zero fill the page past
the end of the inline item.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions