Esempio n. 1
0
static int mdc_max_rpcs_in_flight_seq_show(struct seq_file *m, void *v)
{
	struct obd_device *dev = m->private;
	__u32 max;
	int rc;

	max = obd_get_max_rpcs_in_flight(&dev->u.cli);
	rc = seq_printf(m, "%u\n", max);

	return rc;
}
Esempio n. 2
0
static int osp_rd_lfsck_max_rpcs_in_flight(char *page, char **start, off_t off,
					   int count, int *eof, void *data)
{
	struct obd_device *dev = data;
	__u32 max;
	int rc;

	*eof = 1;
	max = obd_get_max_rpcs_in_flight(&dev->u.cli);
	rc = snprintf(page, count, "%u\n", max);

	return rc;
}