Lines Matching refs:cfile

608 void cifs_queue_oplock_break(struct cifsFileInfo *cfile)  in cifs_queue_oplock_break()  argument
616 cifsFileInfo_get(cfile); in cifs_queue_oplock_break()
618 queue_work(cifsoplockd_wq, &cfile->oplock_break); in cifs_queue_oplock_break()
676 cifs_is_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close **pdclose) in cifs_is_deferred_close() argument
680 list_for_each_entry(dclose, &CIFS_I(d_inode(cfile->dentry))->deferred_closes, dlist) { in cifs_is_deferred_close()
681 if ((dclose->netfid == cfile->fid.netfid) && in cifs_is_deferred_close()
682 (dclose->persistent_fid == cfile->fid.persistent_fid) && in cifs_is_deferred_close()
683 (dclose->volatile_fid == cfile->fid.volatile_fid)) { in cifs_is_deferred_close()
695 cifs_add_deferred_close(struct cifsFileInfo *cfile, struct cifs_deferred_close *dclose) in cifs_add_deferred_close() argument
700 is_deferred = cifs_is_deferred_close(cfile, &pdclose); in cifs_add_deferred_close()
706 dclose->tlink = cfile->tlink; in cifs_add_deferred_close()
707 dclose->netfid = cfile->fid.netfid; in cifs_add_deferred_close()
708 dclose->persistent_fid = cfile->fid.persistent_fid; in cifs_add_deferred_close()
709 dclose->volatile_fid = cfile->fid.volatile_fid; in cifs_add_deferred_close()
710 list_add_tail(&dclose->dlist, &CIFS_I(d_inode(cfile->dentry))->deferred_closes); in cifs_add_deferred_close()
717 cifs_del_deferred_close(struct cifsFileInfo *cfile) in cifs_del_deferred_close() argument
722 is_deferred = cifs_is_deferred_close(cfile, &dclose); in cifs_del_deferred_close()
732 struct cifsFileInfo *cfile = NULL; in cifs_close_deferred_file() local
741 list_for_each_entry(cfile, &cifs_inode->openFileList, flist) { in cifs_close_deferred_file()
742 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_deferred_file()
743 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_deferred_file()
744 cifs_del_deferred_close(cfile); in cifs_close_deferred_file()
749 tmp_list->cfile = cfile; in cifs_close_deferred_file()
757 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_deferred_file()
766 struct cifsFileInfo *cfile; in cifs_close_all_deferred_files() local
772 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_all_deferred_files()
773 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_all_deferred_files()
774 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_all_deferred_files()
775 cifs_del_deferred_close(cfile); in cifs_close_all_deferred_files()
780 tmp_list->cfile = cfile; in cifs_close_all_deferred_files()
788 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_all_deferred_files()
796 struct cifsFileInfo *cfile; in cifs_close_deferred_file_under_dentry() local
805 list_for_each_entry(cfile, &tcon->openFileList, tlist) { in cifs_close_deferred_file_under_dentry()
806 full_path = build_path_from_dentry(cfile->dentry, page); in cifs_close_deferred_file_under_dentry()
808 if (delayed_work_pending(&cfile->deferred)) { in cifs_close_deferred_file_under_dentry()
809 if (cancel_delayed_work(&cfile->deferred)) { in cifs_close_deferred_file_under_dentry()
810 cifs_del_deferred_close(cfile); in cifs_close_deferred_file_under_dentry()
815 tmp_list->cfile = cfile; in cifs_close_deferred_file_under_dentry()
824 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_deferred_file_under_dentry()
965 cifsFileInfo_put(ctx->cfile); in cifs_aio_ctx_release()