Lines Matching refs:cfid
625 struct cached_fid *cfid = container_of(ref, struct cached_fid, in smb2_close_cached_fid() local
628 if (cfid->is_valid) { in smb2_close_cached_fid()
630 SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid, in smb2_close_cached_fid()
631 cfid->fid->volatile_fid); in smb2_close_cached_fid()
632 cfid->is_valid = false; in smb2_close_cached_fid()
633 cfid->file_all_info_is_valid = false; in smb2_close_cached_fid()
634 cfid->has_lease = false; in smb2_close_cached_fid()
638 void close_shroot(struct cached_fid *cfid) in close_shroot() argument
640 mutex_lock(&cfid->fid_mutex); in close_shroot()
641 kref_put(&cfid->refcount, smb2_close_cached_fid); in close_shroot()
642 mutex_unlock(&cfid->fid_mutex); in close_shroot()
645 void close_shroot_lease_locked(struct cached_fid *cfid) in close_shroot_lease_locked() argument
647 if (cfid->has_lease) { in close_shroot_lease_locked()
648 cfid->has_lease = false; in close_shroot_lease_locked()
649 kref_put(&cfid->refcount, smb2_close_cached_fid); in close_shroot_lease_locked()
653 void close_shroot_lease(struct cached_fid *cfid) in close_shroot_lease() argument
655 mutex_lock(&cfid->fid_mutex); in close_shroot_lease()
656 close_shroot_lease_locked(cfid); in close_shroot_lease()
657 mutex_unlock(&cfid->fid_mutex); in close_shroot_lease()
663 struct cached_fid *cfid = container_of(work, in smb2_cached_lease_break() local
666 close_shroot_lease(cfid); in smb2_cached_lease_break()
674 struct cached_fid **cfid) in open_shroot() argument
694 *cfid = &tcon->crfid; in open_shroot()
846 *cfid = &tcon->crfid; in open_shroot()
860 struct cached_fid *cfid = NULL; in smb3_qfs_tcon() local
873 rc = open_shroot(xid, tcon, cifs_sb, &cfid); in smb3_qfs_tcon()
875 memcpy(&fid, cfid->fid, sizeof(struct cifs_fid)); in smb3_qfs_tcon()
893 close_shroot(cfid); in smb3_qfs_tcon()