tmp_suning_uos_patched/fs/btrfs
Chris Mason 93c82d5750 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>
2009-09-11 13:31:08 -04:00
..
acl.c
async-thread.c Btrfs: reduce worker thread spin_lock_irq hold times 2009-09-11 13:31:04 -04:00
async-thread.h
btrfs_inode.h
compat.h
compression.c Btrfs: switch extent_map to a rw lock 2009-09-11 13:31:05 -04:00
compression.h
ctree.c
ctree.h Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
delayed-ref.c
delayed-ref.h
dir-item.c
disk-io.c Btrfs: switch extent_map to a rw lock 2009-09-11 13:31:05 -04:00
disk-io.h
export.c
export.h
extent_io.c Btrfs: Use PagePrivate2 to track pages in the data=ordered code. 2009-09-11 13:31:07 -04:00
extent_io.h Btrfs: Use PagePrivate2 to track pages in the data=ordered code. 2009-09-11 13:31:07 -04:00
extent_map.c Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
extent_map.h Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
extent-tree.c Btrfs: switch extent_map to a rw lock 2009-09-11 13:31:05 -04:00
file-item.c
file.c Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
free-space-cache.c
free-space-cache.h
hash.h
inode-item.c
inode-map.c
inode.c Btrfs: zero page past end of inline file items 2009-09-11 13:31:08 -04:00
ioctl.c Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
ioctl.h
Kconfig
locking.c
locking.h
Makefile
ordered-data.c Btrfs: Use PagePrivate2 to track pages in the data=ordered code. 2009-09-11 13:31:07 -04:00
ordered-data.h Btrfs: Use PagePrivate2 to track pages in the data=ordered code. 2009-09-11 13:31:07 -04:00
orphan.c
print-tree.c
print-tree.h
ref-cache.c
ref-cache.h
relocation.c Btrfs: use a cached state for extent state operations during delalloc 2009-09-11 13:31:07 -04:00
root-tree.c
struct-funcs.c
super.c
sysfs.c
transaction.c
transaction.h
tree-defrag.c
tree-log.c Btrfs: Fix extent replacment race 2009-09-11 13:31:07 -04:00
tree-log.h
version.h
version.sh
volumes.c Btrfs: switch extent_map to a rw lock 2009-09-11 13:31:05 -04:00
volumes.h
xattr.c
xattr.h
zlib.c