Lines Matching refs:cfile
544 struct cifsFileInfo *cfile; in smb2_tcon_has_lease() local
551 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_tcon_has_lease()
552 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_tcon_has_lease()
563 cfile->oplock_break_cancelled = false; in smb2_tcon_has_lease()
565 cfile->oplock_break_cancelled = true; in smb2_tcon_has_lease()
569 cfile->oplock_epoch = le16_to_cpu(rsp->Epoch); in smb2_tcon_has_lease()
570 cfile->oplock_level = lease_state; in smb2_tcon_has_lease()
572 cifs_queue_oplock_break(cfile); in smb2_tcon_has_lease()
679 struct cifsFileInfo *cfile; in smb2_is_valid_oplock_break() local
707 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in smb2_is_valid_oplock_break()
709 cfile->fid.persistent_fid || in smb2_is_valid_oplock_break()
711 cfile->fid.volatile_fid) in smb2_is_valid_oplock_break()
717 cinode = CIFS_I(d_inode(cfile->dentry)); in smb2_is_valid_oplock_break()
718 spin_lock(&cfile->file_info_lock); in smb2_is_valid_oplock_break()
721 cfile->oplock_break_cancelled = true; in smb2_is_valid_oplock_break()
723 cfile->oplock_break_cancelled = false; in smb2_is_valid_oplock_break()
728 cfile->oplock_epoch = 0; in smb2_is_valid_oplock_break()
729 cfile->oplock_level = rsp->OplockLevel; in smb2_is_valid_oplock_break()
731 spin_unlock(&cfile->file_info_lock); in smb2_is_valid_oplock_break()
733 cifs_queue_oplock_break(cfile); in smb2_is_valid_oplock_break()