Lines Matching refs:type
44 int type, int *call_ast,
48 struct dlm_lock *lock, int flags, int type);
61 struct dlm_lock *lock, int flags, int type)
72 status = __dlmconvert_master(dlm, res, lock, flags, type,
105 int type, int *call_ast,
113 mlog(0, "type=%d, convert_type=%d, new convert_type=%d\n",
114 lock->ml.type, lock->ml.convert_type, type);
135 switch (lock->ml.type) {
139 dlm_lock_mode_name(lock->ml.type),
140 dlm_lock_mode_name(type));
146 if (type > LKM_NLMODE) {
149 dlm_lock_mode_name(lock->ml.type),
150 dlm_lock_mode_name(type));
155 dlm_lock_mode_name(lock->ml.type),
156 dlm_lock_mode_name(type));
165 if (type <= lock->ml.type)
173 if (!dlm_lock_compatible(tmplock->ml.type, type))
178 if (!dlm_lock_compatible(tmplock->ml.type, type))
181 if (!dlm_lock_compatible(tmplock->ml.convert_type, type))
189 res->lockname.name, dlm_lock_mode_name(type));
190 /* immediately grant the new lock type */
194 lock->ml.type = type;
212 lock->ml.type, type);
219 lock->ml.convert_type = type;
251 struct dlm_lock *lock, int flags, int type)
255 mlog(0, "type=%d, convert_type=%d, busy=%d\n", lock->ml.type,
280 if (lock->ml.type == type && lock->ml.convert_type == LKM_IVMODE) {
283 "(cookie=%u:%llu, type=%d, conv=%d)\n",
287 lock->ml.type, lock->ml.convert_type);
297 lock->ml.convert_type = type;
300 if (lock->ml.type == LKM_EXMODE) {
316 status = dlm_send_remote_convert_request(dlm, res, lock, flags, type);
355 struct dlm_lock *lock, int flags, int type)
368 convert.requested_type = type;