Skip to content

Commit

Permalink
[XFS] Don't map non-uptodate buffers in xfs_probe_cluster; also fixes
Browse files Browse the repository at this point in the history
obscure corruption case

SGI-PV: 942658
SGI-Modid: xfs-linux-melb:xfs-kern:207119a

Signed-off-by: Eric Sandeen <sandeen@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Eric Sandeen authored and Nathan Scott committed Feb 28, 2006
1 parent dae81d4 commit 2353e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2353e8e

Please sign in to comment.