Skip to content

Commit 6f4ff81

Browse files
Eric Sandeendjwong
authored andcommitted
xfs: log proper length of superblock
xfs_trans_log_buf takes first byte, last byte as args. In this case, it should be from 0 to sizeof() - 1. Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent ce84042 commit 6f4ff81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_sb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ xfs_log_sb(
928928

929929
xfs_sb_to_disk(XFS_BUF_TO_SBP(bp), &mp->m_sb);
930930
xfs_trans_buf_set_type(tp, bp, XFS_BLFT_SB_BUF);
931-
xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb));
931+
xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb) - 1);
932932
}
933933

934934
/*

0 commit comments

Comments
 (0)