Home
last modified time | relevance | path

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

/linux-4.4.14/fs/ceph/
Dlocks.c328 __le32 nlocks; in ceph_locks_to_pagelist() local
330 nlocks = cpu_to_le32(num_fcntl_locks); in ceph_locks_to_pagelist()
331 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
340 nlocks = cpu_to_le32(num_flock_locks); in ceph_locks_to_pagelist()
341 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dservice.c1755 int nlocks; in ptlrpc_handle_rs() local
1802 nlocks = rs->rs_nlocks; /* atomic "steal", but */ in ptlrpc_handle_rs()
1805 if (nlocks == 0 && !been_handled) { in ptlrpc_handle_rs()
1814 if ((!been_handled && rs->rs_on_net) || nlocks > 0) { in ptlrpc_handle_rs()
1822 while (nlocks-- > 0) in ptlrpc_handle_rs()
1823 ldlm_lock_decref(&rs->rs_locks[nlocks], in ptlrpc_handle_rs()
1824 rs->rs_modes[nlocks]); in ptlrpc_handle_rs()