Liu Bo 1f12bd0632 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 <liubo2009@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2012-03-29 09:57:44 -04:00
..
2012-01-03 22:55:04 -05:00
2012-01-03 22:54:53 -05:00
2012-01-03 22:54:07 -05:00
2012-01-03 22:54:57 -05:00
2012-01-03 22:55:10 -05:00
2012-02-28 09:52:39 +00:00
2012-01-03 22:54:54 -05:00
2012-01-09 10:48:11 -05:00
2012-02-17 17:34:03 -05:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:55:01 -05:00
2012-02-02 12:55:17 -08:00
2012-01-03 22:55:07 -05:00
2012-01-10 13:45:22 -08:00
2012-03-09 18:59:59 -08:00
2012-01-03 22:55:11 -05:00
2012-01-03 22:54:54 -05:00
2012-02-08 22:07:18 +01:00
2012-01-03 22:54:07 -05:00
2012-03-18 12:25:04 -07:00
2012-01-03 22:52:39 -05:00
2012-03-10 17:07:28 -05:00
2012-01-05 15:40:12 -08:00
2012-01-03 22:54:07 -05:00
2012-03-10 17:05:30 -05:00
2011-10-31 17:30:44 -07:00
2012-01-03 22:52:40 -05:00
2012-01-03 22:54:07 -05:00
2011-11-02 12:53:43 +01:00
2012-01-03 22:53:07 -05:00
2012-01-03 22:54:07 -05:00
2012-01-03 22:52:40 -05:00