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()
523 struct nfs_commit_info *cinfo) in nfs_direct_write_scan_commit_list() argument
525 mutex_lock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
526 pnfs_recover_commit_reqs(list, cinfo); in nfs_direct_write_scan_commit_list()
527 nfs_scan_commit_list(&cinfo->mds->list, list, cinfo, 0); in nfs_direct_write_scan_commit_list()
528 mutex_unlock(&NFS_I(cinfo->inode)->commit_mutex); in nfs_direct_write_scan_commit_list()
536 struct nfs_commit_info cinfo; in nfs_direct_write_reschedule() local
539 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_reschedule()
540 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_reschedule()
560 spin_lock(&cinfo.inode->i_lock); in nfs_direct_write_reschedule()
566 spin_unlock(&cinfo.inode->i_lock); in nfs_direct_write_reschedule()
586 struct nfs_commit_info cinfo; in nfs_direct_commit_complete() local
602 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_commit_complete()
614 nfs_mark_request_commit(req, NULL, &cinfo, 0); in nfs_direct_commit_complete()
620 if (nfs_commit_end(cinfo.mds)) in nfs_direct_commit_complete()
624 static void nfs_direct_resched_write(struct nfs_commit_info *cinfo, in nfs_direct_resched_write() argument
627 struct nfs_direct_req *dreq = cinfo->dreq; in nfs_direct_resched_write()
635 nfs_mark_request_commit(req, NULL, cinfo, 0); in nfs_direct_resched_write()
646 struct nfs_commit_info cinfo; in nfs_direct_commit_schedule() local
649 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_commit_schedule()
650 nfs_scan_commit(dreq->inode, &mds_list, &cinfo); in nfs_direct_commit_schedule()
651 res = nfs_generic_commit_list(dreq->inode, &mds_list, 0, &cinfo); in nfs_direct_commit_schedule()
658 struct nfs_commit_info cinfo; in nfs_direct_write_clear_reqs() local
662 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_clear_reqs()
663 nfs_direct_write_scan_commit_list(dreq->inode, &reqs, &cinfo); in nfs_direct_write_clear_reqs()
702 struct nfs_commit_info cinfo; in nfs_direct_write_completion() local
708 nfs_init_cinfo_from_dreq(&cinfo, dreq); in nfs_direct_write_completion()
732 nfs_mark_request_commit(req, hdr->lseg, &cinfo, in nfs_direct_write_completion()
736 nfs_mark_request_commit(req, NULL, &cinfo, 0); in nfs_direct_write_completion()