Searched refs:lock_type (Results 1 – 10 of 10) sorted by relevance
| /fs/bcachefs/ |
| A D | six.c | 212 static void __six_lock_wakeup(struct six_lock *lock, enum six_lock_type lock_type) in __six_lock_wakeup() argument 224 if (w->lock_want != lock_type) in __six_lock_wakeup() 227 if (saw_one && lock_type != SIX_LOCK_read) in __six_lock_wakeup() 231 ret = __do_six_trylock(lock, lock_type, w->task, false); in __six_lock_wakeup() 254 six_clear_bitmask(lock, SIX_LOCK_WAITING_read << lock_type); in __six_lock_wakeup() 259 lock_type = -ret - 1; in __six_lock_wakeup() 266 enum six_lock_type lock_type) in six_lock_wakeup() argument 268 if (lock_type == SIX_LOCK_write && (state & SIX_LOCK_HELD_read)) in six_lock_wakeup() 271 if (!(state & (SIX_LOCK_WAITING_read << lock_type))) in six_lock_wakeup() 274 __six_lock_wakeup(lock, lock_type); in six_lock_wakeup()
|
| A D | btree_cache.c | 902 enum six_lock_type lock_type, in bch2_btree_node_fill() argument 995 if (lock_type == SIX_LOCK_read) in bch2_btree_node_fill() 1041 enum six_lock_type lock_type, in __bch2_btree_node_get() argument 1060 level, lock_type, true); in __bch2_btree_node_get() 1082 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get() 1098 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get() 1136 six_unlock_type(&b->c.lock, lock_type); in __bch2_btree_node_get() 1165 enum six_lock_type lock_type, in bch2_btree_node_get() argument 1198 six_unlock_type(&b->c.lock, lock_type); in bch2_btree_node_get() 1207 six_unlock_type(&b->c.lock, lock_type); in bch2_btree_node_get() [all …]
|
| A D | btree_locking.h | 135 int lock_type = btree_node_locked_type(path, level); in btree_node_unlock() local 139 if (lock_type != BTREE_NODE_UNLOCKED) { in btree_node_unlock() 140 if (unlikely(lock_type == BTREE_NODE_WRITE_LOCKED)) { in btree_node_unlock() 142 lock_type = BTREE_NODE_INTENT_LOCKED; in btree_node_unlock() 144 six_unlock_type(&path->l[level].b->c.lock, lock_type); in btree_node_unlock()
|
| A D | btree_iter.c | 739 enum six_lock_type lock_type; in btree_path_lock_root() local 767 lock_type = __btree_lock_want(path, path->level); in btree_path_lock_root() 769 path->level, lock_type, trace_ip); in btree_path_lock_root() 786 (enum btree_node_locked_type) lock_type); in btree_path_lock_root() 791 six_unlock_type(&b->c.lock, lock_type); in btree_path_lock_root() 953 enum six_lock_type lock_type = __btree_lock_want(path, level); in btree_path_down() local 978 level, lock_type, trace_ip); in btree_path_down() 992 (enum btree_node_locked_type) lock_type); in btree_path_down()
|
| /fs/ceph/ |
| A D | locks.c | 76 static int ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, in ceph_lock_message() argument 117 (int)lock_type, (int)operation, owner, in ceph_lock_message() 121 req->r_args.filelock_change.rule = lock_type; in ceph_lock_message() 154 (int)lock_type, (int)operation, (u64) fl->c.flc_pid, in ceph_lock_message() 165 int err, lock_type; in ceph_lock_wait_for_completion() local 169 lock_type = CEPH_LOCK_FCNTL_INTR; in ceph_lock_wait_for_completion() 171 lock_type = CEPH_LOCK_FLOCK_INTR; in ceph_lock_wait_for_completion() 215 intr_req->r_args.filelock_change.rule = lock_type; in ceph_lock_wait_for_completion()
|
| /fs/afs/ |
| A 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() 517 if (vnode->lock_type == AFS_LOCK_WRITE) { in afs_do_setlk() 551 vnode->lock_type = type; in afs_do_setlk()
|
| A D | internal.h | 718 afs_lock_type_t lock_type : 8; member
|
| /fs/smb/client/ |
| A D | cifsproto.h | 542 const __u16 netfid, const __u8 lock_type, 553 struct file_lock *, const __u16 lock_type,
|
| A D | cifssmb.c | 1949 const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, in cifs_lockv() argument 1969 pSMB->LockType = lock_type; in cifs_lockv() 2066 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock() argument 2116 parm_data->lock_type = cpu_to_le16(lock_type); in CIFSSMBPosixLock() 2166 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) in CIFSSMBPosixLock() 2169 if (parm_data->lock_type == in CIFSSMBPosixLock() 2172 else if (parm_data->lock_type == in CIFSSMBPosixLock()
|
| A D | cifspdu.h | 1138 __le16 lock_type; /* 0 = Read, 1 = Write, 2 = Unlock */ member
|
Completed in 56 milliseconds