Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/xen/
Dxen-balloon.c150 unsigned long long target_bytes; in store_target_kb() local
155 target_bytes = simple_strtoull(buf, &endchar, 0) * 1024; in store_target_kb()
157 balloon_set_new_target(target_bytes >> PAGE_SHIFT); in store_target_kb()
180 unsigned long long target_bytes; in store_target() local
185 target_bytes = memparse(buf, &endchar); in store_target()
187 balloon_set_new_target(target_bytes >> PAGE_SHIFT); in store_target()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_internal.h94 int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes);
Dosc_request.c936 __u64 target_bytes = (cli->cl_max_rpcs_in_flight + 1) * in osc_shrink_grant() local
940 if (cli->cl_avail_grant <= target_bytes) in osc_shrink_grant()
941 target_bytes = cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT; in osc_shrink_grant()
944 return osc_shrink_grant_to_target(cli, target_bytes); in osc_shrink_grant()
947 int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes) in osc_shrink_grant_to_target() argument
956 if (target_bytes < cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT) in osc_shrink_grant_to_target()
957 target_bytes = cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT; in osc_shrink_grant_to_target()
959 if (target_bytes >= cli->cl_avail_grant) { in osc_shrink_grant_to_target()
972 body->oa.o_grant = cli->cl_avail_grant - target_bytes; in osc_shrink_grant_to_target()
973 cli->cl_avail_grant = target_bytes; in osc_shrink_grant_to_target()