Home
last modified time | relevance | path

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

/linux-6.12.1/fs/smb/server/
Dsmb2pdu.c7200 struct ksmbd_lock *smb_lock = NULL, *cmp_lock, *tmp, *tmp2; in smb2_lock() local
7279 smb_lock = smb2_lock_init(flock, cmd, flags, &lock_list); in smb2_lock()
7280 if (!smb_lock) { in smb2_lock()
7287 list_for_each_entry_safe(smb_lock, tmp, &lock_list, llist) { in smb2_lock()
7288 if (smb_lock->cmd < 0) { in smb2_lock()
7293 if (!(smb_lock->flags & SMB2_LOCKFLAG_MASK)) { in smb2_lock()
7299 smb_lock->flags & SMB2_LOCKFLAG_UNLOCK) || in smb2_lock()
7301 !(smb_lock->flags & SMB2_LOCKFLAG_UNLOCK))) { in smb2_lock()
7306 prior_lock = smb_lock->flags; in smb2_lock()
7308 if (!(smb_lock->flags & SMB2_LOCKFLAG_UNLOCK) && in smb2_lock()
[all …]
Dvfs_cache.c319 struct ksmbd_lock *smb_lock, *tmp_lock; in __ksmbd_close_fd() local
336 list_for_each_entry_safe(smb_lock, tmp_lock, &fp->lock_list, flist) { in __ksmbd_close_fd()
338 list_del(&smb_lock->clist); in __ksmbd_close_fd()
341 list_del(&smb_lock->flist); in __ksmbd_close_fd()
342 locks_free_lock(smb_lock->fl); in __ksmbd_close_fd()
343 kfree(smb_lock); in __ksmbd_close_fd()