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

Commit 6a617dd2 authored by Tim Shimmin's avatar Tim Shimmin Committed by Niv Sardi
Browse files

[XFS] A bug was found in xfs_bmap_add_extent_unwritten_real(). In a


particular case, the delta param which is supposed to describe the region
where extents have changed was not updated appropriately.

SGI-PV: 984030

SGI-Modid: xfs-linux-melb:xfs-kern:31663a

Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: default avatarOlaf Weber <olaf@sgi.com>
parent 766b0925
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1740,9 +1740,9 @@ xfs_bmap_add_extent_unwritten_real(
				r[1].br_state)))
				goto done;
			/* new left extent - oldext */
			PREV.br_blockcount =
				new->br_startoff - PREV.br_startoff;
			cur->bc_rec.b = PREV;
			cur->bc_rec.b.br_blockcount =
				new->br_startoff - PREV.br_startoff;
			if ((error = xfs_bmbt_insert(cur, &i)))
				goto done;
			XFS_WANT_CORRUPTED_GOTO(i == 1, done);