Skip to content

Commit

Permalink
[XFS] Fix extent list corruption in xfs_iext_irec_compact_full().
Browse files Browse the repository at this point in the history
If we don't move all the records from the next buffer into the current
buffer then we need to update the er_extoff field of the next buffer as we
shift the remaining records to the start of the buffer.

SGI-PV: 987159

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

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Russell Cattelan <cattelan@thebarn.com>
  • Loading branch information
Lachlan McIlroy authored and Lachlan McIlroy committed Sep 26, 2008
1 parent 6ef190c commit f1ccd29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4584,6 +4584,7 @@ xfs_iext_irec_compact_full(
(XFS_LINEAR_EXTS -
erp_next->er_extcount) *
sizeof(xfs_bmbt_rec_t));
erp_next->er_extoff += ext_diff;
}
}

Expand Down

0 comments on commit f1ccd29

Please sign in to comment.