Lines Matching refs:cfile

631 void cifs_queue_oplock_break(struct cifsFileInfo *cfile)  in cifs_queue_oplock_break()  argument
639 cifsFileInfo_get(cfile); in cifs_queue_oplock_break()
641 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break()
699 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument
703 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close()
704 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close()
705 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close()
706 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close()
718 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument
723 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close()
729 dclose->tlink = cfile->tlink; in cifs_add_deferred_close()
730 dclose->netfid = cfile->fid.netfid; in cifs_add_deferred_close()
731 dclose->persistent_fid = cfile->fid.persistent_fid; in cifs_add_deferred_close()
732 dclose->volatile_fid = cfile->fid.volatile_fid; in cifs_add_deferred_close()
733 list_add_tail(&dclose->dlist, &CIFS_I(d_inode(cfile->dentry))->deferred_closes); in cifs_add_deferred_close()
740 cifs_del_deferred_close(struct cifsFileInfo *cfile) in cifs_del_deferred_close() argument
745 is_deferred = cifs_is_deferred_close(cfile, &dclose); in cifs_del_deferred_close()
755 struct cifsFileInfo *cfile = NULL; in cifs_close_deferred_file() local
763 list_for_each_entry(cfile, &cifs_inode->openFileList, flist) { in cifs_close_deferred_file()
764 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_deferred_file()
765 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_deferred_file()
767 cifs_del_deferred_close(cfile); in cifs_close_deferred_file()
773 tmp_list->cfile = cfile; in cifs_close_deferred_file()
781 _cifsFileInfo_put(tmp_list->cfile, false, false); in cifs_close_deferred_file()
790 struct cifsFileInfo *cfile; in cifs_close_all_deferred_files() local
795 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_all_deferred_files()
796 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_all_deferred_files()
797 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_all_deferred_files()
798 spin_lock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock); in cifs_close_all_deferred_files()
799 cifs_del_deferred_close(cfile); in cifs_close_all_deferred_files()
800 spin_unlock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock); in cifs_close_all_deferred_files()
805 tmp_list->cfile = cfile; in cifs_close_all_deferred_files()
813 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_all_deferred_files()
821 struct cifsFileInfo *cfile; in cifs_close_deferred_file_under_dentry() local
829 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_deferred_file_under_dentry()
830 full_path = build_path_from_dentry(cfile->dentry, page); in cifs_close_deferred_file_under_dentry()
832 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_deferred_file_under_dentry()
833 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_deferred_file_under_dentry()
834 spin_lock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock); in cifs_close_deferred_file_under_dentry()
835 cifs_del_deferred_close(cfile); in cifs_close_deferred_file_under_dentry()
836 spin_unlock(&CIFS_I(d_inode(cfile->dentry))->deferred_lock); in cifs_close_deferred_file_under_dentry()
841 tmp_list->cfile = cfile; in cifs_close_deferred_file_under_dentry()
850 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_deferred_file_under_dentry()
864 struct cifsFileInfo *cfile; in cifs_mark_open_handles_for_deleted_file() local
878 list_for_each_entry(cfile, &cinode->openFileList, flist) { in cifs_mark_open_handles_for_deleted_file()
879 full_path = build_path_from_dentry(cfile->dentry, page); in cifs_mark_open_handles_for_deleted_file()
881 cfile->status_file_deleted = true; in cifs_mark_open_handles_for_deleted_file()
884 list_for_each_entry(cfile, &cinode->openFileList, flist) in cifs_mark_open_handles_for_deleted_file()
885 cfile->status_file_deleted = true; in cifs_mark_open_handles_for_deleted_file()