diff options
author | Eric Sandeen <sandeen@redhat.com> | 2014-02-26 23:15:27 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-02-26 23:15:27 -0500 |
commit | 533b81c875589ad0a2fc116991534b4601195253 (patch) | |
tree | 8a8098e03198f28d448bf789f36832970e5255e2 /fs/xfs/xfs_sb.h | |
parent | e0d2c23a253149b4f8a6100f94ca62ddc4b2ae84 (diff) |
xfs: Use defines for CRC offsets in all cases
Some calls to crc functions used useful #defines,
others used awkward offsetof() constructs.
Switch them all to #define to make things a bit cleaner.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_sb.h')
-rw-r--r-- | fs/xfs/xfs_sb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h index 35061d4b614c..f7b2fe77c5a5 100644 --- a/fs/xfs/xfs_sb.h +++ b/fs/xfs/xfs_sb.h | |||
@@ -182,6 +182,8 @@ typedef struct xfs_sb { | |||
182 | /* must be padded to 64 bit alignment */ | 182 | /* must be padded to 64 bit alignment */ |
183 | } xfs_sb_t; | 183 | } xfs_sb_t; |
184 | 184 | ||
185 | #define XFS_SB_CRC_OFF offsetof(struct xfs_sb, sb_crc) | ||
186 | |||
185 | /* | 187 | /* |
186 | * Superblock - on disk version. Must match the in core version above. | 188 | * Superblock - on disk version. Must match the in core version above. |
187 | * Must be padded to 64 bit alignment. | 189 | * Must be padded to 64 bit alignment. |