Home
last modified time | relevance | path

Searched refs:perm_n (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/net/ceph/crush/
Dmapper.c82 if (work->perm_x != (__u32)x || work->perm_n == 0) { in bucket_perm_choose()
91 work->perm_n = 0xffff; /* magic value, see below */ in bucket_perm_choose()
97 work->perm_n = 0; in bucket_perm_choose()
98 } else if (work->perm_n == 0xffff) { in bucket_perm_choose()
103 work->perm_n = 1; in bucket_perm_choose()
107 for (i = 0; i < work->perm_n; i++) in bucket_perm_choose()
109 while (work->perm_n <= pr) { in bucket_perm_choose()
110 unsigned int p = work->perm_n; in bucket_perm_choose()
122 work->perm_n++; in bucket_perm_choose()
878 w->work[b]->perm_n = 0; in crush_init_workspace()
/linux-6.12.1/include/linux/crush/
Dcrush.h343 __u32 perm_n; /* num elements of *perm that are permuted/defined */ member