Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/locking/
Dtest-ww_mutex.c359 int nlocks; member
394 const int nlocks = stress->nlocks; in stress_inorder_work() local
399 order = get_random_order(nlocks); in stress_inorder_work()
410 for (n = 0; n < nlocks; n++) { in stress_inorder_work()
459 order = get_random_order(stress->nlocks); in stress_reorder_work()
463 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()
513 const int nlocks = stress->nlocks; in stress_one_work() local
514 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work()
537 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument
542 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
[all …]
/Linux-v4.19/fs/ceph/
Dlocks.c455 __le32 nlocks; in ceph_locks_to_pagelist() local
457 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist()
458 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
469 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist()
470 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()