Exemplo n.º 1
0
static int mdd_lfsck_speed_limit_seq_show(struct seq_file *m, void *data)
{
    struct mdd_device *mdd = m->private;

    LASSERT(mdd != NULL);
    return lfsck_get_speed(m, mdd->mdd_bottom);
}
Exemplo n.º 2
0
static int lprocfs_rd_lfsck_speed_limit(char *page, char **start, off_t off,
					int count, int *eof, void *data)
{
	struct mdd_device *mdd = data;

	LASSERT(mdd != NULL);
	*eof = 1;

	return lfsck_get_speed(mdd->mdd_bottom, page, count);
}