From: Yan Date: Mon, 29 Oct 2007 15:41:07 +0000 (-0400) Subject: Fix inline extent handling in btrfs_get_extent X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~431 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689f9346612d96ab93890160cf2fe0df5217ab73;p=pandora-kernel.git 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 --- Reading git-diff-tree failed