diff options
author | Eric Sandeen <sandeen@sgi.com> | 2006-02-27 20:30:30 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-02-27 20:30:30 -0500 |
commit | 2353e8e9b6ae29aad77935f21735a30f5cc419b4 (patch) | |
tree | 6c3b2b28e1e33ebe26bf12866dccfdeedaf6ea1e | |
parent | dae81d4774ecbeb7d24bb9a6a4db9f9baee54d85 (diff) |
[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 <sandeen@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
540 | 540 | ||
541 | /* First sum forwards in this page */ | 541 | /* First sum forwards in this page */ |
542 | do { | 542 | do { |
543 | if (mapped != buffer_mapped(bh)) | 543 | if (!buffer_uptodate(bh) || (mapped != buffer_mapped(bh))) |
544 | return total; | 544 | return total; |
545 | total += bh->b_size; | 545 | total += bh->b_size; |
546 | } while ((bh = bh->b_this_page) != head); | 546 | } while ((bh = bh->b_this_page) != head); |