From: Eric Sandeen Date: Fri, 15 Nov 2019 22:16:23 +0000 (-0500) Subject: xfs: log proper length of superblock X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3775cb8f5af4dc9a5a010fbaa663d71f474d5416;p=thirdparty%2Fxfsprogs-dev.git xfs: log proper length of superblock Source kernel commit: 6f4ff81a4602dcfba436c6e2307d61ce9e9f652c 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 Reviewed-by: Dave Chinner Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen m_sb); xfs_trans_buf_set_type(tp, bp, XFS_BLFT_SB_BUF); - xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb)); + xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb) - 1); } /*