Searched refs:target_bytes (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/xen/
H A Dxen-balloon.c150 unsigned long long target_bytes; store_target_kb() local
155 target_bytes = simple_strtoull(buf, &endchar, 0) * 1024; store_target_kb()
157 balloon_set_new_target(target_bytes >> PAGE_SHIFT); store_target_kb()
180 unsigned long long target_bytes; store_target() local
185 target_bytes = memparse(buf, &endchar); store_target()
187 balloon_set_new_target(target_bytes >> PAGE_SHIFT); store_target()
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
H A Dosc_internal.h98 int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes);
H A Dosc_request.c905 __u64 target_bytes = (cli->cl_max_rpcs_in_flight + 1) * osc_shrink_grant() local
909 if (cli->cl_avail_grant <= target_bytes) osc_shrink_grant()
910 target_bytes = cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT; osc_shrink_grant()
913 return osc_shrink_grant_to_target(cli, target_bytes); osc_shrink_grant()
916 int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes) osc_shrink_grant_to_target() argument
925 if (target_bytes < cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT) osc_shrink_grant_to_target()
926 target_bytes = cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT; osc_shrink_grant_to_target()
928 if (target_bytes >= cli->cl_avail_grant) { osc_shrink_grant_to_target()
941 body->oa.o_grant = cli->cl_avail_grant - target_bytes; osc_shrink_grant_to_target()
942 cli->cl_avail_grant = target_bytes; osc_shrink_grant_to_target()

Completed in 220 milliseconds