static int ldiskfs_osd_oi_scrub_seq_show(struct seq_file *m, void *data) { struct osd_device *dev = osd_dt_dev((struct dt_device *)m->private); LASSERT(dev != NULL); if (unlikely(dev->od_mnt == NULL)) return -EINPROGRESS; return osd_scrub_dump(m, dev); }
static int lprocfs_osd_rd_oi_scrub(char *page, char **start, off_t off, int count, int *eof, void *data) { struct osd_device *dev = osd_dt_dev(data); LASSERT(dev != NULL); if (unlikely(dev->od_mnt == NULL)) return -EINPROGRESS; *eof = 1; return osd_scrub_dump(dev, page, count); }