Skip to content
Commit 39bab87b authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Josef Bacik
Browse files

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: default avatarWang Sheng-Hui <shhuiw@gmail.com>
parent 1b303fc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment