Home
last modified time | relevance | path

Searched refs:smb_lock (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/fs/smb/server/
Dvfs_cache.c304 struct ksmbd_lock *smb_lock, *tmp_lock; in __ksmbd_close_fd() local
320 list_for_each_entry_safe(smb_lock, tmp_lock, &fp->lock_list, flist) { in __ksmbd_close_fd()
322 list_del(&smb_lock->clist); in __ksmbd_close_fd()
325 list_del(&smb_lock->flist); in __ksmbd_close_fd()
326 locks_free_lock(smb_lock->fl); in __ksmbd_close_fd()
327 kfree(smb_lock); in __ksmbd_close_fd()
Dsmb2pdu.c6876 struct ksmbd_lock *smb_lock = NULL, *cmp_lock, *tmp, *tmp2; in smb2_lock() local
6955 smb_lock = smb2_lock_init(flock, cmd, flags, &lock_list); in smb2_lock()
6956 if (!smb_lock) { in smb2_lock()
6963 list_for_each_entry_safe(smb_lock, tmp, &lock_list, llist) { in smb2_lock()
6964 if (smb_lock->cmd < 0) { in smb2_lock()
6969 if (!(smb_lock->flags & SMB2_LOCKFLAG_MASK)) { in smb2_lock()
6975 smb_lock->flags & SMB2_LOCKFLAG_UNLOCK) || in smb2_lock()
6977 !(smb_lock->flags & SMB2_LOCKFLAG_UNLOCK))) { in smb2_lock()
6982 prior_lock = smb_lock->flags; in smb2_lock()
6984 if (!(smb_lock->flags & SMB2_LOCKFLAG_UNLOCK) && in smb2_lock()
[all …]