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-Url: https://git.stricted.de/?a=commitdiff_plain;h=2353e8e9b6ae29aad77935f21735a30f5cc419b4;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 8f2beec526cf..74d8be87f983 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);