Home
last modified time | relevance | path

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

/linux-6.6.21/fs/ceph/
Dlocks.c76 static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, in ceph_lock_message() argument
115 "start: %llu, length: %llu, wait: %d, type: %d\n", (int)lock_type, in ceph_lock_message()
119 req->r_args.filelock_change.rule = lock_type; in ceph_lock_message()
151 "length: %llu, wait: %d, type: %d, err code %d\n", (int)lock_type, in ceph_lock_message()
162 int err, lock_type; in ceph_lock_wait_for_completion() local
166 lock_type = CEPH_LOCK_FCNTL_INTR; in ceph_lock_wait_for_completion()
168 lock_type = CEPH_LOCK_FLOCK_INTR; in ceph_lock_wait_for_completion()
213 intr_req->r_args.filelock_change.rule = lock_type; in ceph_lock_wait_for_completion()
/linux-6.6.21/include/linux/
Dlockdep_types.h139 u8 lock_type; member
191 u8 lock_type; member
Dlockdep.h186 struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type);
218 (lock)->dep_map.lock_type)
224 (lock)->dep_map.lock_type)
230 (lock)->dep_map.lock_type)
236 (lock)->dep_map.lock_type)
355 .lock_type = LD_LOCK_WAIT_OVERRIDE, }
Dspinlock_types_raw.h45 .lock_type = LD_LOCK_PERCPU, \
Dlocal_lock_internal.h23 .lock_type = LD_LOCK_PERCPU, \
/linux-6.6.21/lib/
Dxarray.c38 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) in xas_lock_type() argument
40 if (lock_type == XA_LOCK_IRQ) in xas_lock_type()
42 else if (lock_type == XA_LOCK_BH) in xas_lock_type()
48 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) in xas_unlock_type() argument
50 if (lock_type == XA_LOCK_IRQ) in xas_unlock_type()
52 else if (lock_type == XA_LOCK_BH) in xas_unlock_type()
328 unsigned int lock_type = xa_lock_type(xas->xa); in __xas_nomem() local
337 xas_unlock_type(xas, lock_type); in __xas_nomem()
339 xas_lock_type(xas, lock_type); in __xas_nomem()
/linux-6.6.21/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.h656 afs_lock_type_t lock_type : 8; member
/linux-6.6.21/kernel/locking/
Dlockdep.c1335 class->lock_type = lock->lock_type; in register_lock_class()
2265 if (entry->class->lock_type == LD_LOCK_NORMAL) in usage_skip()
2294 if (entry->class->lock_type == LD_LOCK_PERCPU && in usage_skip()
4815 if (unlikely(class->lock_type == LD_LOCK_WAIT_OVERRIDE)) in check_wait_context()
4858 u8 inner, u8 outer, u8 lock_type) in lockdep_init_map_type() argument
4881 lock->lock_type = lock_type; in lockdep_init_map_type()
5332 lock->lock_type); in __lock_set_class()
/linux-6.6.21/fs/smb/client/
Dcifsproto.h506 const __u16 netfid, const __u8 lock_type,
517 struct file_lock *, const __u16 lock_type,
Dcifssmb.c1851 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument
1871 pSMB->LockType = lock_type; in cifs_lockv()
1968 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument
2018 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock()
2068 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock()
2071 if (parm_data->lock_type == in CIFSSMBPosixLock()
2074 else if (parm_data->lock_type == in CIFSSMBPosixLock()
Dcifspdu.h1098 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
/linux-6.6.21/drivers/block/
Drbd.c1732 u8 lock_type; in rbd_object_map_lock() local
1753 RBD_LOCK_NAME, &lock_type, &lock_tag, in rbd_object_map_lock()
3881 u8 lock_type; in get_lock_owner_info() local
3888 &lock_type, &lock_tag, &lockers, &num_lockers); in get_lock_owner_info()
3906 if (lock_type != CEPH_CLS_LOCK_EXCLUSIVE) { in get_lock_owner_info()