From: Christoph Hellwig Date: Mon, 31 Jul 2017 20:08:10 +0000 (-0500) Subject: xfs: remove XFS_HSIZE X-Git-Tag: v4.13.0-rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9d26e43a2347de2125316c74f395bb9e6ef0537;p=thirdparty%2Fxfsprogs-dev.git xfs: remove XFS_HSIZE Source kernel commit: 3398a4005f0c8ced67a9071475562d435d88b7a6 XFS_HSIZE is an extremly confusing way to calculate the size of handle_t. Given that handle_t always only had two sizes, and one of them isn't even covered by XFS_HSIZE to start with just remove the macro and use a constant sizeof expression. Note that XFS_HSIZE isn't used in xfsprogs, xfsdump or xfstests either. Signed-off-by: Christoph Hellwig Reviewed-by: Eric Sandeen Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 1831cff4a..99f7f8811 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -467,10 +467,6 @@ typedef struct xfs_handle { } xfs_handle_t; #define ha_fsid ha_u._ha_fsid -#define XFS_HSIZE(handle) (((char *) &(handle).ha_fid.fid_pad \ - - (char *) &(handle)) \ - + (handle).ha_fid.fid_len) - /* * Structure passed to XFS_IOC_SWAPEXT */