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

/linux-4.4.14/net/ceph/crush/
H A Dmapper.c392 * crush_choose_firstn - choose numrep distinct items of given type
396 * @numrep: the number of items to choose
413 int x, int numrep, int type, crush_choose_firstn()
436 dprintk("CHOOSE%s bucket %d x %d outpos %d numrep %d tries %d recurse_tries %d local_retries %d local_fallback_retries %d parent_r %d\n", crush_choose_firstn()
438 bucket->id, x, outpos, numrep, crush_choose_firstn()
442 for (rep = outpos; rep < numrep && count > 0 ; rep++) { crush_choose_firstn()
595 int x, int left, int numrep, int type, crush_choose_indep()
613 dprintk("CHOOSE%s INDEP bucket %d x %d outpos %d numrep %d\n", recurse_to_leaf ? "_LEAF" : "", crush_choose_indep()
614 bucket->id, x, outpos, numrep); crush_choose_indep()
658 in->size % numrep == 0) crush_choose_indep()
660 r += (numrep+1) * ftotal; crush_choose_indep()
663 r += numrep * ftotal; crush_choose_indep()
720 x, 1, numrep, 0, crush_choose_indep()
803 int numrep; crush_do_rule() local
893 * basically, numrep <= 0 means relative to crush_do_rule()
896 numrep = curstep->arg1; crush_do_rule()
897 if (numrep <= 0) { crush_do_rule()
898 numrep += result_max; crush_do_rule()
899 if (numrep <= 0) crush_do_rule()
916 x, numrep, crush_do_rule()
929 out_size = ((numrep < (result_max-osize)) ? crush_do_rule()
930 numrep : (result_max-osize)); crush_do_rule()
935 x, out_size, numrep, crush_do_rule()
410 crush_choose_firstn(const struct crush_map *map, struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int numrep, int type, int *out, int outpos, int out_size, unsigned int tries, unsigned int recurse_tries, unsigned int local_retries, unsigned int local_fallback_retries, int recurse_to_leaf, unsigned int vary_r, int *out2, int parent_r) crush_choose_firstn() argument
592 crush_choose_indep(const struct crush_map *map, struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int left, int numrep, int type, int *out, int outpos, unsigned int tries, unsigned int recurse_tries, int recurse_to_leaf, int *out2, int parent_r) crush_choose_indep() argument

Completed in 80 milliseconds