Home
last modified time | relevance | path

Searched refs:lock_type (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/fs/ceph/
Dlocks.c63 static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, in ceph_lock_message() argument
102 "start: %llu, length: %llu, wait: %d, type: %d\n", (int)lock_type, in ceph_lock_message()
106 req->r_args.filelock_change.rule = lock_type; in ceph_lock_message()
138 "length: %llu, wait: %d, type: %d, err code %d\n", (int)lock_type, in ceph_lock_message()
149 int err, lock_type; in ceph_lock_wait_for_completion() local
153 lock_type = CEPH_LOCK_FCNTL_INTR; in ceph_lock_wait_for_completion()
155 lock_type = CEPH_LOCK_FLOCK_INTR; in ceph_lock_wait_for_completion()
200 intr_req->r_args.filelock_change.rule = lock_type; in ceph_lock_wait_for_completion()
/Linux-v5.4/lib/
Dxarray.c35 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) in xas_lock_type() argument
37 if (lock_type == XA_LOCK_IRQ) in xas_lock_type()
39 else if (lock_type == XA_LOCK_BH) in xas_lock_type()
45 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) in xas_unlock_type() argument
47 if (lock_type == XA_LOCK_IRQ) in xas_unlock_type()
49 else if (lock_type == XA_LOCK_BH) in xas_unlock_type()
324 unsigned int lock_type = xa_lock_type(xas->xa); in __xas_nomem() local
333 xas_unlock_type(xas, lock_type); in __xas_nomem()
335 xas_lock_type(xas, lock_type); in __xas_nomem()
/Linux-v5.4/fs/afs/
Dflock.c92 bool exclusive = (vnode->lock_type == AFS_LOCK_WRITE); in afs_grant_locks()
118 if (vnode->lock_type == AFS_LOCK_WRITE) in afs_next_locker()
529 if (vnode->lock_type == AFS_LOCK_WRITE) { in afs_do_setlk()
563 vnode->lock_type = type; in afs_do_setlk()
Dinternal.h679 afs_lock_type_t lock_type : 8; member
/Linux-v5.4/fs/cifs/
Dcifsproto.h446 const __u16 netfid, const __u8 lock_type,
457 struct file_lock *, const __u16 lock_type,
Dcifssmb.c2462 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument
2482 pSMB->LockType = lock_type; in cifs_lockv()
2579 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument
2628 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock()
2678 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock()
2681 if (parm_data->lock_type == in CIFSSMBPosixLock()
2684 else if (parm_data->lock_type == in CIFSSMBPosixLock()
Dcifspdu.h1140 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
/Linux-v5.4/drivers/block/
Drbd.c1866 u8 lock_type; in rbd_object_map_lock() local
1887 RBD_LOCK_NAME, &lock_type, &lock_tag, in rbd_object_map_lock()
3991 u8 lock_type; in get_lock_owner_info() local
3999 &lock_type, &lock_tag, lockers, num_lockers); in get_lock_owner_info()
4015 if (lock_type == CEPH_CLS_LOCK_SHARED) { in get_lock_owner_info()