From: Lachlan McIlroy Date: Fri, 26 Sep 2008 02:16:46 +0000 (+1000) Subject: [XFS] Fix extent list corruption in xfs_iext_irec_compact_full(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1ccd2955157e1aff992f6aaaba0944209076220;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [XFS] Fix extent list corruption in xfs_iext_irec_compact_full(). 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 Signed-off-by: Eric Sandeen Signed-off-by: Russell Cattelan --- diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 00e80df9dd9..419cfc2eacb 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -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; } }