[go: nahoru, domu]

Lines Matching defs:cli

51 	rc = seq_printf(m, "%d\n", !dev->u.cli.cl_import->imp_deactive);
69 if (dev->u.cli.cl_import->imp_deactive == val)
70 rc = ptlrpc_set_import_active(dev->u.cli.cl_import, val);
81 struct client_obd *cli = &dev->u.cli;
84 client_obd_list_lock(&cli->cl_loi_list_lock);
85 rc = seq_printf(m, "%u\n", cli->cl_max_rpcs_in_flight);
86 client_obd_list_unlock(&cli->cl_loi_list_lock);
94 struct client_obd *cli = &dev->u.cli;
95 struct ptlrpc_request_pool *pool = cli->cl_import->imp_rq_pool;
106 if (pool && val > cli->cl_max_rpcs_in_flight)
107 pool->prp_populate(pool, val-cli->cl_max_rpcs_in_flight);
109 client_obd_list_lock(&cli->cl_loi_list_lock);
110 cli->cl_max_rpcs_in_flight = val;
111 client_obd_list_unlock(&cli->cl_loi_list_lock);
121 struct client_obd *cli = &dev->u.cli;
125 client_obd_list_lock(&cli->cl_loi_list_lock);
126 val = cli->cl_dirty_max;
127 client_obd_list_unlock(&cli->cl_loi_list_lock);
137 struct client_obd *cli = &dev->u.cli;
150 client_obd_list_lock(&cli->cl_loi_list_lock);
151 cli->cl_dirty_max = (u32)(pages_number << PAGE_CACHE_SHIFT);
152 osc_wake_cache_waiters(cli);
153 client_obd_list_unlock(&cli->cl_loi_list_lock);
162 struct client_obd *cli = &dev->u.cli;
169 (atomic_read(&cli->cl_lru_in_list) +
170 atomic_read(&cli->cl_lru_busy)) >> shift,
171 atomic_read(&cli->cl_lru_busy));
182 struct client_obd *cli = &dev->u.cli;
203 rc = atomic_read(&cli->cl_lru_in_list) - pages_number;
205 (void)osc_lru_shrink(cli, rc);
214 struct client_obd *cli = &dev->u.cli;
217 client_obd_list_lock(&cli->cl_loi_list_lock);
218 rc = seq_printf(m, "%lu\n", cli->cl_dirty);
219 client_obd_list_unlock(&cli->cl_loi_list_lock);
227 struct client_obd *cli = &dev->u.cli;
230 client_obd_list_lock(&cli->cl_loi_list_lock);
231 rc = seq_printf(m, "%lu\n", cli->cl_avail_grant);
232 client_obd_list_unlock(&cli->cl_loi_list_lock);
240 struct client_obd *cli = &obd->u.cli;
252 client_obd_list_lock(&cli->cl_loi_list_lock);
253 if (val >= cli->cl_avail_grant) {
254 client_obd_list_unlock(&cli->cl_loi_list_lock);
257 client_obd_list_unlock(&cli->cl_loi_list_lock);
260 if (cli->cl_import->imp_state == LUSTRE_IMP_FULL)
261 rc = osc_shrink_grant_to_target(cli, val);
272 struct client_obd *cli = &dev->u.cli;
275 client_obd_list_lock(&cli->cl_loi_list_lock);
276 rc = seq_printf(m, "%lu\n", cli->cl_lost_grant);
277 client_obd_list_unlock(&cli->cl_loi_list_lock);
289 obd->u.cli.cl_grant_shrink_interval);
308 obd->u.cli.cl_grant_shrink_interval = val;
322 obd->u.cli.cl_checksum ? 1 : 0);
338 obd->u.cli.cl_checksum = (val ? 1 : 0);
354 if (((1 << i) & obd->u.cli.cl_supp_cksum_types) == 0)
356 if (obd->u.cli.cl_cksum_type == (1 << i))
386 if (((1 << i) & obd->u.cli.cl_supp_cksum_types) == 0)
389 obd->u.cli.cl_cksum_type = 1 << i;
401 return seq_printf(m, "%u\n", atomic_read(&obd->u.cli.cl_resends));
417 atomic_set(&obd->u.cli.cl_resends, val);
465 atomic_read(&obd->u.cli.cl_destroy_in_flight));
478 struct client_obd *cli = &dev->u.cli;
479 struct obd_connect_data *ocd = &cli->cl_import->imp_connect_data;
493 chunk_mask = ~((1 << (cli->cl_chunkbits - PAGE_CACHE_SHIFT)) - 1);
500 client_obd_list_lock(&cli->cl_loi_list_lock);
501 cli->cl_max_pages_per_rpc = val;
502 client_obd_list_unlock(&cli->cl_loi_list_lock);
574 struct client_obd *cli = &dev->u.cli;
580 client_obd_list_lock(&cli->cl_loi_list_lock);
585 cli->cl_r_in_flight);
587 cli->cl_w_in_flight);
589 atomic_read(&cli->cl_pending_w_pages));
591 atomic_read(&cli->cl_pending_r_pages));
597 read_tot = lprocfs_oh_sum(&cli->cl_read_page_hist);
598 write_tot = lprocfs_oh_sum(&cli->cl_write_page_hist);
603 unsigned long r = cli->cl_read_page_hist.oh_buckets[i];
604 unsigned long w = cli->cl_write_page_hist.oh_buckets[i];
620 read_tot = lprocfs_oh_sum(&cli->cl_read_rpc_hist);
621 write_tot = lprocfs_oh_sum(&cli->cl_write_rpc_hist);
626 unsigned long r = cli->cl_read_rpc_hist.oh_buckets[i];
627 unsigned long w = cli->cl_write_rpc_hist.oh_buckets[i];
643 read_tot = lprocfs_oh_sum(&cli->cl_read_offset_hist);
644 write_tot = lprocfs_oh_sum(&cli->cl_write_offset_hist);
649 unsigned long r = cli->cl_read_offset_hist.oh_buckets[i];
650 unsigned long w = cli->cl_write_offset_hist.oh_buckets[i];
661 client_obd_list_unlock(&cli->cl_loi_list_lock);
672 struct client_obd *cli = &dev->u.cli;
674 lprocfs_oh_clear(&cli->cl_read_rpc_hist);
675 lprocfs_oh_clear(&cli->cl_write_rpc_hist);
676 lprocfs_oh_clear(&cli->cl_read_page_hist);
677 lprocfs_oh_clear(&cli->cl_write_page_hist);
678 lprocfs_oh_clear(&cli->cl_read_offset_hist);
679 lprocfs_oh_clear(&cli->cl_write_offset_hist);