From: Wang Sheng-Hui Date: Fri, 6 Apr 2012 06:35:31 +0000 (+0800) Subject: Btrfs: fix btrfs_release_extent_buffer_page with the right usage of num_extent_pages X-Git-Tag: v3.5-rc1~17^2~1^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39bab87ba6f4d8cce2b70c19e60233ad8030d7b4;p=pandora-kernel.git Btrfs: fix btrfs_release_extent_buffer_page with the right usage of num_extent_pages num_extent_pages returns the number of pages in the specific range, not the index of the last page in the eb range. btrfs_release_extent_buffer_page is called with start_idx set 0 in current codes, so it's not a problem yet. But the logic is indeed wrong. Fix it here. Signed-off-by: Wang Sheng-Hui --- Reading git-diff-tree failed