]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix btrfs_release_extent_buffer_page with the right usage of num_extent_pages
authorWang Sheng-Hui <shhuiw@gmail.com>
Fri, 6 Apr 2012 06:35:31 +0000 (14:35 +0800)
committerJosef Bacik <josef@redhat.com>
Fri, 11 May 2012 14:56:38 +0000 (10:56 -0400)
commite21b80f29b7da01a234ea971be9d642ab3b59dbe
tree000084281b76183533122fd2db482d3dc2376237
parent628c07f2ef0c2b9a98e0e1cade8bc72cce3682b3
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 <shhuiw@gmail.com>
fs/btrfs/extent_io.c