dlm_num_locks_in_lockres
total_locks = dlm_num_locks_in_lockres(res);
static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res);