Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2353e8e9 authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott
Browse files

[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: default avatarEric Sandeen <sandeen@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent dae81d47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);