From: Eric Sandeen Date: Tue, 28 Feb 2006 01:30:30 +0000 (+1100) Subject: [XFS] Don't map non-uptodate buffers in xfs_probe_cluster; also fixes X-Git-Tag: v2.6.16-rc6~162^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2353e8e9b6ae29aad77935f21735a30f5cc419b4;p=linux-2.6-omap-h63xx.git [XFS] Don't map non-uptodate buffers in xfs_probe_cluster; also fixes obscure corruption case SGI-PV: 942658 SGI-Modid: xfs-linux-melb:xfs-kern:207119a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott --- diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 8f2beec526c..74d8be87f98 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c @@ -540,7 +540,7 @@ xfs_probe_cluster( /* First sum forwards in this page */ do { - if (mapped != buffer_mapped(bh)) + if (!buffer_uptodate(bh) || (mapped != buffer_mapped(bh))) return total; total += bh->b_size; } while ((bh = bh->b_this_page) != head);