From: Josef Bacik Date: Fri, 11 Nov 2011 01:45:05 +0000 (-0500) Subject: Btrfs: only map pages if we know we need them when reading the space cache X-Git-Tag: v3.2-rc2~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f120c05e67ae34c93786b1050c6828904314429;p=pandora-kernel.git Btrfs: only map pages if we know we need them when reading the space cache People have been running into a warning when loading space cache because the page is already mapped when trying to read in a bitmap. The way we read in entries and pages is kind of convoluted, so fix it so that io_ctl_read_entry maps the entries if it needs to, and if it hits the end of the page it simply unmaps the page. That way we can unconditionally unmap the io_ctl before reading in the bitmap and we should stop hitting these warnings. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed