]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: refactor offsetof+sizeof to offsetofend
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:44:18 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:52 +0000 (13:44 -0700)
commitfba00b9d87da210fca99c609fafa63d9159ca085
tree3e759a881236a0664b877d896601aafce5b9f93e
parentf55a18497f4a9cc6641fe2a1281e3b42941109dd
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>
include/xfs.h
repair/agheader.c