Lines Matching refs:flags
45 struct dlm_lock *lock, int flags);
103 struct dlm_lock *lock, int flags) in dlmlock_master() argument
149 if (flags & LKM_NOQUEUE) { in dlmlock_master()
186 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlm_revert_pending_lock()
199 struct dlm_lock *lock, int flags) in dlmlock_remote() argument
206 res->lockname.name, flags); in dlmlock_remote()
228 status = dlm_send_remote_lock_request(dlm, res, lock, flags); in dlmlock_remote()
285 struct dlm_lock *lock, int flags) in dlm_send_remote_lock_request() argument
296 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
389 newlock->ml.flags = 0; in dlm_init_lock()
485 if (be32_to_cpu(create->flags) & LKM_GET_LVB) { in dlm_create_lock_handler()
486 lksb->flags |= DLM_LKSB_GET_LVB; in dlm_create_lock_handler()
508 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags)); in dlm_create_lock_handler()
541 struct dlm_lockstatus *lksb, int flags, in dlmlock() argument
564 if (flags & ~LKM_VALID_FLAGS) { in dlmlock()
569 convert = (flags & LKM_CONVERT); in dlmlock()
570 recovery = (flags & LKM_RECOVERY); in dlmlock()
577 if (convert && (flags & LKM_LOCAL)) { in dlmlock()
620 status = dlmconvert_master(dlm, res, lock, flags, mode); in dlmlock()
622 status = dlmconvert_remote(dlm, res, lock, flags, mode); in dlmlock()
661 res = dlm_get_lock_resource(dlm, name, namelen, flags); in dlmlock()
668 mlog(0, "type=%d, flags = 0x%x\n", mode, flags); in dlmlock()
677 if (flags & LKM_VALBLK) { in dlmlock()
683 flags &= ~LKM_VALBLK; in dlmlock()
685 flags |= LKM_GET_LVB; in dlmlock()
686 lock->lksb->flags |= DLM_LKSB_GET_LVB; in dlmlock()
691 status = dlmlock_master(dlm, res, lock, flags); in dlmlock()
693 status = dlmlock_remote(dlm, res, lock, flags); in dlmlock()
721 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlmlock()