From: Liu Bo Date: Thu, 29 Mar 2012 13:57:44 +0000 (-0400) Subject: Btrfs: fix the mismatch of page->mapping X-Git-Tag: v3.4-rc1~22^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f12bd063285b059cb63315d1424dae1ddd87a64;p=pandora-kernel.git Btrfs: fix the mismatch of page->mapping commit 600a45e1d5e376f679ff9ecc4ce9452710a6d27c (Btrfs: fix deadlock on page lock when doing auto-defragment) fixes the deadlock on page, but it also introduces another bug. A page may have been truncated after unlock & lock. So we need to find it again to get the right one. And since we've held i_mutex lock, inode size remains unchanged and we can drop isize overflow checks. Signed-off-by: Liu Bo Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed