int suspect,
int isroot,
uint32_t magic,
- void *priv),
+ void *priv,
+ const struct xfs_buf_ops *ops),
int isroot,
uint32_t magic,
void *priv,
}
(*func)(XFS_BUF_TO_BLOCK(bp), nlevels - 1, root, agno, suspect,
- isroot, magic, priv);
+ isroot, magic, priv, ops);
libxfs_putbuf(bp);
}
int suspect,
int isroot,
uint32_t magic,
- void *priv)
+ void *priv,
+ const struct xfs_buf_ops *ops)
{
struct aghdr_cnts *agcnts = priv;
const char *name;
* as possible.
*/
if (agbno != 0 && verify_agbno(mp, agno, agbno)) {
- switch (magic) {
- case XFS_ABTB_CRC_MAGIC:
- case XFS_ABTB_MAGIC:
- scan_sbtree(agbno, level, agno, suspect,
- scan_allocbt, 0, magic, priv,
- &xfs_allocbt_buf_ops);
- break;
- case XFS_ABTC_CRC_MAGIC:
- case XFS_ABTC_MAGIC:
- scan_sbtree(agbno, level, agno, suspect,
- scan_allocbt, 0, magic, priv,
- &xfs_allocbt_buf_ops);
- break;
- }
+ scan_sbtree(agbno, level, agno, suspect, scan_allocbt,
+ 0, magic, priv, ops);
}
}
}
int suspect,
int isroot,
uint32_t magic,
- void *priv)
+ void *priv,
+ const struct xfs_buf_ops *ops)
{
const char *name = "rmap";
int i;
if (agbno != 0 && verify_agbno(mp, agno, agbno)) {
scan_sbtree(agbno, level, agno, suspect, scan_rmapbt, 0,
- magic, priv, &xfs_rmapbt_buf_ops);
+ magic, priv, ops);
}
}
int suspect,
int isroot,
uint32_t magic,
- void *priv)
+ void *priv,
+ const struct xfs_buf_ops *ops)
{
const char *name = "refcount";
int i;
if (agbno != 0 && verify_agbno(mp, agno, agbno)) {
scan_sbtree(agbno, level, agno, suspect, scan_refcbt, 0,
- magic, priv, &xfs_refcountbt_buf_ops);
+ magic, priv, ops);
}
}
out:
int suspect,
int isroot,
uint32_t magic,
- void *priv)
+ void *priv,
+ const struct xfs_buf_ops *ops)
{
struct aghdr_cnts *agcnts = priv;
int i;
be32_to_cpu(pp[i])))
scan_sbtree(be32_to_cpu(pp[i]), level, agno,
suspect, scan_inobt, 0, magic, priv,
- &xfs_inobt_buf_ops);
+ ops);
}
}