diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-07-02 11:22:49 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-07-02 11:37:00 -0700 |
commit | ac3a0275165b4f80d9b7b516d6a8f8b308644fff (patch) | |
tree | f5aeb0f01d59840696447c79fb89e2f9b186ff76 /fs/xfs/libxfs/xfs_ialloc_btree.c | |
parent | 47d4d5961fb9069803576ed3adb85b57a575a1b9 (diff) | |
download | linux-ac3a0275165b4f80d9b7b516d6a8f8b308644fff.tar.gz linux-ac3a0275165b4f80d9b7b516d6a8f8b308644fff.tar.bz2 linux-ac3a0275165b4f80d9b7b516d6a8f8b308644fff.zip |
xfs: don't use the incore struct xfs_sb for offsets into struct xfs_dsb
Currently, the XFS_SB_CRC_OFF macro uses the incore superblock struct
(xfs_sb) to compute the address of sb_crc within the ondisk superblock
struct (xfs_dsb). This is a landmine if we ever change the layout of
the incore superblock (as we're about to do), so redefine the macro
to use xfs_dsb to compute the layout of xfs_dsb.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
0 files changed, 0 insertions, 0 deletions