diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:16:00 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:08:09 -0800 |
commit | 03690c0fa806dda1e0d38b983fe07167d2047827 (patch) | |
tree | 369868855927847569e4e7814d24a4f20f62ec76 /fs/xfs/xfs_inode_item_recover.c | |
parent | 1a5570ad47c90e819b2a631e9a18516758324e83 (diff) |
xfs: wire up a new inode fork type for the realtime refcount
Plumb in the pieces we need to embed the root of the realtime refcount
btree in an inode's data fork, complete with new fork type and
on-disk interpretation functions.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_inode_item_recover.c')
-rw-r--r-- | fs/xfs/xfs_inode_item_recover.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode_item_recover.c b/fs/xfs/xfs_inode_item_recover.c index feeba1dff01e..f13bf35793f1 100644 --- a/fs/xfs/xfs_inode_item_recover.c +++ b/fs/xfs/xfs_inode_item_recover.c @@ -23,6 +23,7 @@ #include "xfs_icache.h" #include "xfs_bmap_btree.h" #include "xfs_rtrmap_btree.h" +#include "xfs_rtrefcount_btree.h" STATIC void xlog_recover_inode_ra_pass2( @@ -284,6 +285,9 @@ xlog_recover_inode_dbroot( case XFS_DINODE_FMT_RMAP: xfs_rtrmapbt_to_disk(mp, src, len, dfork, dsize); break; + case XFS_DINODE_FMT_REFCOUNT: + xfs_rtrefcountbt_to_disk(mp, src, len, dfork, dsize); + break; default: ASSERT(0); return -EFSCORRUPTED; |