]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: refactor offsetof+sizeof to offsetofend
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:34 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:33 +0000 (18:01 -0800)
commit607b7197c02125ee16ba6f79beaf0c26efd640c7
treebc4e89bb67d2fb7e5b8130f144047d4997d601a5
parent88a387f8f05a37b30070e3e19fde463731a23092
xfs_repair: refactor offsetof+sizeof to offsetofend

Replace this open-coded logic with the kernel's offsetofend macro before
we start adding more in the next patch.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/xfs.h
repair/agheader.c