Lines Matching refs:cinfo

152 void nfs_init_cinfo_from_dreq(struct nfs_commit_info *cinfo,  in nfs_init_cinfo_from_dreq()  argument
155 cinfo->inode = dreq->inode; in nfs_init_cinfo_from_dreq()
156 cinfo->mds = &dreq->mds_cinfo; in nfs_init_cinfo_from_dreq()
157 cinfo->ds = &dreq->ds_cinfo; in nfs_init_cinfo_from_dreq()
158 cinfo->dreq = dreq; in nfs_init_cinfo_from_dreq()
159 cinfo->completion_ops = &nfs_direct_commit_completion_ops; in nfs_init_cinfo_from_dreq()
496 struct nfs_commit_info *cinfo) in nfs_direct_write_scan_commit_list() argument
498 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
499 pnfs_recover_commit_reqs(list, cinfo); in nfs_direct_write_scan_commit_list()
500 nfs_scan_commit_list(&cinfo->mds->list, list, cinfo, 0); in nfs_direct_write_scan_commit_list()
501 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
509 struct nfs_commit_info cinfo; in nfs_direct_write_reschedule() local
512 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_reschedule()
513 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_reschedule()
533 spin_lock(&cinfo.inode->i_lock); in nfs_direct_write_reschedule()
539 spin_unlock(&cinfo.inode->i_lock); in nfs_direct_write_reschedule()
559 struct nfs_commit_info cinfo; in nfs_direct_commit_complete() local
575 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_commit_complete()
587 nfs_mark_request_commit(req, NULL, &cinfo, 0); in nfs_direct_commit_complete()
593 if (nfs_commit_end(cinfo.mds)) in nfs_direct_commit_complete()
597 static void nfs_direct_resched_write(struct nfs_commit_info *cinfo, in nfs_direct_resched_write() argument
600 struct nfs_direct_req *dreq = cinfo->dreq; in nfs_direct_resched_write()
608 nfs_mark_request_commit(req, NULL, cinfo, 0); in nfs_direct_resched_write()
619 struct nfs_commit_info cinfo; in nfs_direct_commit_schedule() local
622 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_commit_schedule()
623 nfs_scan_commit(dreq->inode, &mds_list, &cinfo); in nfs_direct_commit_schedule()
624 res = nfs_generic_commit_list(dreq->inode, &mds_list, 0, &cinfo); in nfs_direct_commit_schedule()
631 struct nfs_commit_info cinfo; in nfs_direct_write_clear_reqs() local
635 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_clear_reqs()
636 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_clear_reqs()
675 struct nfs_commit_info cinfo; in nfs_direct_write_completion() local
681 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_completion()
705 nfs_mark_request_commit(req, hdr->lseg, &cinfo, in nfs_direct_write_completion()
709 nfs_mark_request_commit(req, NULL, &cinfo, 0); in nfs_direct_write_completion()