@@ -19,7 +19,6 @@
#include "descr.h"
#include "libfrog/fsgeom.h"
#include "libfrog/bulkstat.h"
-#include "parent.h"
/*
* Iterate a range of inodes.
@@ -450,28 +449,3 @@ scrub_open_handle(
return open_by_fshandle(handle, sizeof(*handle),
O_RDONLY | O_NOATIME | O_NOFOLLOW | O_NOCTTY);
}
-
-/* Construct a description for an inode. */
-void
-xfs_scrub_ino_descr(
- struct scrub_ctx *ctx,
- struct xfs_handle *handle,
- char *buf,
- size_t buflen)
-{
- uint64_t ino;
- xfs_agnumber_t agno;
- xfs_agino_t agino;
- int ret;
-
- ret = handle_to_path(handle, sizeof(struct xfs_handle), buf, buflen);
- if (ret >= 0)
- return;
-
- ino = handle->ha_fid.fid_ino;
- agno = ino / (1ULL << (ctx->mnt.inopblog + ctx->mnt.agblklog));
- agino = ino % (1ULL << (ctx->mnt.inopblog + ctx->mnt.agblklog));
- snprintf(buf, buflen, _("inode %"PRIu64" (%u/%u)"), ino, agno,
- agino);
-}
-
@@ -21,7 +21,5 @@ int scrub_scan_all_inodes(struct scrub_ctx *ctx, scrub_inode_iter_fn fn,
void *arg);
int scrub_open_handle(struct xfs_handle *handle);
-void xfs_scrub_ino_descr(struct scrub_ctx *ctx, struct xfs_handle *handle,
- char *buf, size_t buflen);
#endif /* XFS_SCRUB_INODES_H_ */