Home
last modified time | relevance | path

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

/Linux-v6.1/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-v6.1/include/linux/
Dlockdep_types.h130 u8 lock_type; member
182 u8 lock_type; member
Dlockdep.h185 struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type);
217 (lock)->dep_map.lock_type)
223 (lock)->dep_map.lock_type)
229 (lock)->dep_map.lock_type)
235 (lock)->dep_map.lock_type)
Dspinlock_types_raw.h45 .lock_type = LD_LOCK_PERCPU, \
Dlocal_lock_internal.h23 .lock_type = LD_LOCK_PERCPU, \
/Linux-v6.1/lib/
Dxarray.c36 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()
330 unsigned int lock_type = xa_lock_type(xas->xa); in __xas_nomem() local
339 xas_unlock_type(xas, lock_type); in __xas_nomem()
341 xas_lock_type(xas, lock_type); in __xas_nomem()
/Linux-v6.1/fs/afs/
Dflock.c93 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()
Dinternal.h653 afs_lock_type_t lock_type : 8; member
/Linux-v6.1/fs/cifs/
Dcifsproto.h481 const __u16 netfid, const __u8 lock_type,
492 struct file_lock *, const __u16 lock_type,
Dcifssmb.c1884 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument
1904 pSMB->LockType = lock_type; in cifs_lockv()
2001 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument
2051 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock()
2101 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock()
2104 if (parm_data->lock_type == in CIFSSMBPosixLock()
2107 else if (parm_data->lock_type == in CIFSSMBPosixLock()
Dcifspdu.h1096 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
/Linux-v6.1/kernel/locking/
Dlockdep.c1340 class->lock_type = lock->lock_type; in register_lock_class()
2281 if (entry->class->lock_type == LD_LOCK_PERCPU) { in usage_skip()
4805 u8 inner, u8 outer, u8 lock_type) in lockdep_init_map_type() argument
4828 lock->lock_type = lock_type; in lockdep_init_map_type()
5246 lock->lock_type); in __lock_set_class()
/Linux-v6.1/drivers/block/
Drbd.c1709 u8 lock_type; in rbd_object_map_lock() local
1730 RBD_LOCK_NAME, &lock_type, &lock_tag, in rbd_object_map_lock()
3835 u8 lock_type; in get_lock_owner_info() local
3843 &lock_type, &lock_tag, lockers, num_lockers); in get_lock_owner_info()
3859 if (lock_type == CEPH_CLS_LOCK_SHARED) { in get_lock_owner_info()