Searched refs:lock_type (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/fs/ceph/ |
D | locks.c | 63 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.10/lib/ |
D | xarray.c | 36 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) in xas_lock_type() argument 38 if (lock_type == XA_LOCK_IRQ) in xas_lock_type() 40 else if (lock_type == XA_LOCK_BH) in xas_lock_type() 46 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) in xas_unlock_type() argument 48 if (lock_type == XA_LOCK_IRQ) in xas_unlock_type() 50 else if (lock_type == XA_LOCK_BH) in xas_unlock_type() 327 unsigned int lock_type = xa_lock_type(xas->xa); in __xas_nomem() local 336 xas_unlock_type(xas, lock_type); in __xas_nomem() 338 xas_lock_type(xas, lock_type); in __xas_nomem()
|
/Linux-v5.10/fs/afs/ |
D | flock.c | 93 bool exclusive = (vnode->lock_type == AFS_LOCK_WRITE); in afs_grant_locks() 119 if (vnode->lock_type == AFS_LOCK_WRITE) in afs_next_locker() 518 if (vnode->lock_type == AFS_LOCK_WRITE) { in afs_do_setlk() 552 vnode->lock_type = type; in afs_do_setlk()
|
D | internal.h | 651 afs_lock_type_t lock_type : 8; member
|
/Linux-v5.10/fs/cifs/ |
D | cifsproto.h | 464 const __u16 netfid, const __u8 lock_type, 475 struct file_lock *, const __u16 lock_type,
|
D | cifssmb.c | 2389 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument 2409 pSMB->LockType = lock_type; in cifs_lockv() 2506 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument 2555 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock() 2605 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock() 2608 if (parm_data->lock_type == in CIFSSMBPosixLock() 2611 else if (parm_data->lock_type == in CIFSSMBPosixLock()
|
D | cifspdu.h | 1140 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
|
/Linux-v5.10/drivers/block/ |
D | rbd.c | 1772 u8 lock_type; in rbd_object_map_lock() local 1793 RBD_LOCK_NAME, &lock_type, &lock_tag, in rbd_object_map_lock() 3899 u8 lock_type; in get_lock_owner_info() local 3907 &lock_type, &lock_tag, lockers, num_lockers); in get_lock_owner_info() 3923 if (lock_type == CEPH_CLS_LOCK_SHARED) { in get_lock_owner_info()
|