aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rtgroup.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-11-21 00:20:30 +0000
committerDarrick J. Wong <[email protected]>2024-12-23 21:06:06 +0000
commit71b8acb42be60e11810eb43a6f470589fcf7b7dd (patch)
tree989ad8c19b2f788ac1ee19f7e1cf41793e88dbfa /fs/xfs/libxfs/xfs_rtgroup.c
parentxfs: wire up rmap map and unmap to the realtime rmapbt (diff)
downloadkernel-71b8acb42be60e11810eb43a6f470589fcf7b7dd.tar.gz
kernel-71b8acb42be60e11810eb43a6f470589fcf7b7dd.zip
xfs: create routine to allocate and initialize a realtime rmap btree inode
Create a library routine to allocate and initialize an empty realtime rmapbt inode. We'll use this for mkfs and repair. Signed-off-by: "Darrick J. Wong" <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtgroup.c')
-rw-r--r--fs/xfs/libxfs/xfs_rtgroup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_rtgroup.c b/fs/xfs/libxfs/xfs_rtgroup.c
index af1716ec0691..5f31b6e65d5d 100644
--- a/fs/xfs/libxfs/xfs_rtgroup.c
+++ b/fs/xfs/libxfs/xfs_rtgroup.c
@@ -33,6 +33,7 @@
#include "xfs_rtbitmap.h"
#include "xfs_metafile.h"
#include "xfs_metadir.h"
+#include "xfs_rtrmap_btree.h"
/* Find the first usable fsblock in this rtgroup. */
static inline uint32_t
@@ -363,6 +364,7 @@ static const struct xfs_rtginode_ops xfs_rtginode_ops[XFS_RTGI_MAX] = {
* rtrmapbt predicate here.
*/
.enabled = xfs_has_rmapbt,
+ .create = xfs_rtrmapbt_create,
},
};