diff options
author | 2024-02-22 12:35:20 -0800 | |
---|---|---|
committer | 2024-02-22 12:35:20 -0800 | |
commit | 90cfae818dac5227e94e21d0f5250e098432723e (patch) | |
tree | 3968b0fb11243f63865f8230448c3dd785338366 /fs/xfs/libxfs/xfs_rmap_btree.c | |
parent | xfs: set btree block buffer ops in _init_buf (diff) | |
download | wireguard-linux-90cfae818dac5227e94e21d0f5250e098432723e.tar.xz wireguard-linux-90cfae818dac5227e94e21d0f5250e098432723e.zip |
xfs: move lru refs to the btree ops structure
Move the btree buffer LRU refcount to the btree ops structure so that we
can eliminate the last bc_btnum switch in the generic btree code. We're
about to create repair-specific btree types, and we don't want that
stuff cluttering up libxfs.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r-- | fs/xfs/libxfs/xfs_rmap_btree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c index 086576626f5b..8abe90c25f71 100644 --- a/fs/xfs/libxfs/xfs_rmap_btree.c +++ b/fs/xfs/libxfs/xfs_rmap_btree.c @@ -478,6 +478,8 @@ const struct xfs_btree_ops xfs_rmapbt_ops = { .rec_len = sizeof(struct xfs_rmap_rec), .key_len = 2 * sizeof(struct xfs_rmap_key), + .lru_refs = XFS_RMAP_BTREE_REF, + .dup_cursor = xfs_rmapbt_dup_cursor, .set_root = xfs_rmapbt_set_root, .alloc_block = xfs_rmapbt_alloc_block, |