diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-09 10:02:02 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-15 17:57:05 -0700 |
commit | 7f8f1313d91a7db9546de6e5bfeb1a2eebb1fef5 (patch) | |
tree | d8477b413b593b6b1e63cedd68e0fc02979dffbf /fs/xfs/libxfs/xfs_refcount.h | |
parent | 14861c47400b4a1669956d8b027fe4b7855e39f1 (diff) | |
download | talos-obmc-linux-7f8f1313d91a7db9546de6e5bfeb1a2eebb1fef5.tar.gz talos-obmc-linux-7f8f1313d91a7db9546de6e5bfeb1a2eebb1fef5.zip |
xfs: expose various functions to repair code
Expose various helpers that the repair code will want to use.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_refcount.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount.h b/fs/xfs/libxfs/xfs_refcount.h index 2a731ac68fe4..5856abb265ec 100644 --- a/fs/xfs/libxfs/xfs_refcount.h +++ b/fs/xfs/libxfs/xfs_refcount.h @@ -85,5 +85,10 @@ static inline xfs_fileoff_t xfs_refcount_max_unmap(int log_res) extern int xfs_refcount_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool *exists); +union xfs_btree_rec; +extern void xfs_refcount_btrec_to_irec(union xfs_btree_rec *rec, + struct xfs_refcount_irec *irec); +extern int xfs_refcount_insert(struct xfs_btree_cur *cur, + struct xfs_refcount_irec *irec, int *stat); #endif /* __XFS_REFCOUNT_H__ */ |