summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/bitmap.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-01-16 10:12:14 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-02-04 09:31:16 -0800
commit98592421e28b8b09f0e58765792a55268dbba6ff (patch)
tree00a5fbef287beee564bf9ea01647a1fcdb663527 /fs/xfs/scrub/bitmap.h
parentab1837abcb2ed4bfe740ca87175666779eebcf40 (diff)
xfs: repair the rmapbt
Rebuild the reverse mapping btree from all primary metadata. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/bitmap.h')
-rw-r--r--fs/xfs/scrub/bitmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/bitmap.h b/fs/xfs/scrub/bitmap.h
index ae8ecbce6fa6..f75494b16cb7 100644
--- a/fs/xfs/scrub/bitmap.h
+++ b/fs/xfs/scrub/bitmap.h
@@ -14,6 +14,7 @@ struct xfs_bitmap_range {
struct xfs_bitmap {
struct list_head list;
+ xfs_fsblock_t weight;
};
void xfs_bitmap_init(struct xfs_bitmap *bitmap);
@@ -32,5 +33,6 @@ int xfs_bitmap_set_btcur_path(struct xfs_bitmap *bitmap,
struct xfs_btree_cur *cur);
int xfs_bitmap_set_btblocks(struct xfs_bitmap *bitmap,
struct xfs_btree_cur *cur);
+uint64_t xfs_bitmap_hweight(struct xfs_bitmap *bitmap);
#endif /* __XFS_SCRUB_BITMAP_H__ */