Searched refs:nlocks (Results 1 – 2 of 2) sorted by relevance
346 int nlocks; member381 const int nlocks = stress->nlocks; in stress_inorder_work() local386 order = get_random_order(nlocks); in stress_inorder_work()397 for (n = 0; n < nlocks; n++) { in stress_inorder_work()446 order = get_random_order(stress->nlocks); in stress_reorder_work()450 for (n = 0; n < stress->nlocks; n++) { in stress_reorder_work()500 const int nlocks = stress->nlocks; in stress_one_work() local501 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work()524 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument529 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()[all …]
472 __le32 nlocks; in ceph_locks_to_pagelist() local474 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist()475 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()486 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist()487 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()