diff options
author | 2007-10-29 11:41:07 -0400 | |
---|---|---|
committer | 2008-09-25 11:03:57 -0400 | |
commit | 689f9346612d96ab93890160cf2fe0df5217ab73 (patch) | |
tree | 6a5e153e2cadf1042e28eab79956cad849056064 /fs/btrfs/extent_map.h | |
parent | Btrfs: Fix extent_map leak in extent_bmap (diff) | |
download | linux-dev-689f9346612d96ab93890160cf2fe0df5217ab73.tar.xz linux-dev-689f9346612d96ab93890160cf2fe0df5217ab73.zip |
Fix inline extent handling in btrfs_get_extent
1. Reorder kmap and the test for 'page != NULL'
2. Zero-fill rest area of a block when inline extent isn't big enough.
3. Do not insert extent_map into the map tree when page == NULL.
(If insert the extent_map into the map tree, subsequent read requests
will find it in the map tree directly and the corresponding inline
extent data aren't copied into page by the the get_extent function.
extent_read_full_page can't handle that case)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
0 files changed, 0 insertions, 0 deletions