diff options
| author | Darrick J. Wong <[email protected]> | 2024-02-22 20:35:36 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-02-22 20:35:36 +0000 |
| commit | 1a9d26291c68fbb8f8d24f9f694b32223a072745 (patch) | |
| tree | b5cda76c7f06835e311cbe42ccc20d77e09c841f /fs/xfs/libxfs/xfs_rmap_btree.c | |
| parent | xfs: factor out a btree block owner check (diff) | |
| download | kernel-1a9d26291c68fbb8f8d24f9f694b32223a072745.tar.gz kernel-1a9d26291c68fbb8f8d24f9f694b32223a072745.zip | |
xfs: store the btree pointer length in struct xfs_btree_ops
Make the pointer length an explicit field in the btree operations
structure so that the next patch (which introduces an explicit btree
type enum) doesn't have to play a bunch of awkward games with inferring
the pointer length from the enumeration.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rmap_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_rmap_btree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c index e0ae6da94fc3..71df1d7d0e01 100644 --- a/fs/xfs/libxfs/xfs_rmap_btree.c +++ b/fs/xfs/libxfs/xfs_rmap_btree.c @@ -477,6 +477,7 @@ const struct xfs_btree_ops xfs_rmapbt_ops = { .rec_len = sizeof(struct xfs_rmap_rec), .key_len = 2 * sizeof(struct xfs_rmap_key), + .ptr_len = XFS_BTREE_SHORT_PTR_LEN, .lru_refs = XFS_RMAP_BTREE_REF, .statoff = XFS_STATS_CALC_INDEX(xs_rmap_2), |
