Lines Matching refs:flags
63 struct dlm_lock *lock, int flags);
124 struct dlm_lock *lock, int flags) in dlmlock_master() argument
170 if (flags & LKM_NOQUEUE) { in dlmlock_master()
210 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlm_revert_pending_lock()
223 struct dlm_lock *lock, int flags) in dlmlock_remote() argument
230 res->lockname.name, flags); in dlmlock_remote()
246 status = dlm_send_remote_lock_request(dlm, res, lock, flags); in dlmlock_remote()
303 struct dlm_lock *lock, int flags) in dlm_send_remote_lock_request() argument
316 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
411 newlock->ml.flags = 0; in dlm_init_lock()
509 if (be32_to_cpu(create->flags) & LKM_GET_LVB) { in dlm_create_lock_handler()
510 lksb->flags |= DLM_LKSB_GET_LVB; in dlm_create_lock_handler()
532 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags)); in dlm_create_lock_handler()
565 struct dlm_lockstatus *lksb, int flags, in dlmlock() argument
588 if (flags & ~LKM_VALID_FLAGS) { in dlmlock()
593 convert = (flags & LKM_CONVERT); in dlmlock()
594 recovery = (flags & LKM_RECOVERY); in dlmlock()
601 if (convert && (flags & LKM_LOCAL)) { in dlmlock()
644 status = dlmconvert_master(dlm, res, lock, flags, mode); in dlmlock()
646 status = dlmconvert_remote(dlm, res, lock, flags, mode); in dlmlock()
685 res = dlm_get_lock_resource(dlm, name, namelen, flags); in dlmlock()
692 mlog(0, "type=%d, flags = 0x%x\n", mode, flags); in dlmlock()
701 if (flags & LKM_VALBLK) { in dlmlock()
707 flags &= ~LKM_VALBLK; in dlmlock()
709 flags |= LKM_GET_LVB; in dlmlock()
710 lock->lksb->flags |= DLM_LKSB_GET_LVB; in dlmlock()
715 status = dlmlock_master(dlm, res, lock, flags); in dlmlock()
717 status = dlmlock_remote(dlm, res, lock, flags); in dlmlock()
745 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlmlock()