Lines Matching refs:pgio
1007 static void nfs_pageio_setup_mirroring(struct nfs_pageio_descriptor *pgio, in nfs_pageio_setup_mirroring() argument
1012 if (pgio->pg_ops->pg_get_mirror_count) in nfs_pageio_setup_mirroring()
1013 mirror_count = pgio->pg_ops->pg_get_mirror_count(pgio, req); in nfs_pageio_setup_mirroring()
1014 if (mirror_count == pgio->pg_mirror_count || pgio->pg_error < 0) in nfs_pageio_setup_mirroring()
1018 pgio->pg_error = -EINVAL; in nfs_pageio_setup_mirroring()
1022 pgio->pg_mirrors = nfs_pageio_alloc_mirrors(pgio, mirror_count); in nfs_pageio_setup_mirroring()
1023 if (pgio->pg_mirrors == NULL) { in nfs_pageio_setup_mirroring()
1024 pgio->pg_error = -ENOMEM; in nfs_pageio_setup_mirroring()
1025 pgio->pg_mirrors = pgio->pg_mirrors_static; in nfs_pageio_setup_mirroring()
1028 pgio->pg_mirror_count = mirror_count; in nfs_pageio_setup_mirroring()
1031 static void nfs_pageio_cleanup_mirroring(struct nfs_pageio_descriptor *pgio) in nfs_pageio_cleanup_mirroring() argument
1033 pgio->pg_mirror_count = 1; in nfs_pageio_cleanup_mirroring()
1034 pgio->pg_mirror_idx = 0; in nfs_pageio_cleanup_mirroring()
1035 pgio->pg_mirrors = pgio->pg_mirrors_static; in nfs_pageio_cleanup_mirroring()
1036 kfree(pgio->pg_mirrors_dynamic); in nfs_pageio_cleanup_mirroring()
1037 pgio->pg_mirrors_dynamic = NULL; in nfs_pageio_cleanup_mirroring()
1060 struct nfs_pageio_descriptor *pgio) in nfs_coalesce_size() argument
1085 return pgio->pg_ops->pg_test(pgio, prev, req); in nfs_coalesce_size()
1440 void nfs_pageio_stop_mirroring(struct nfs_pageio_descriptor *pgio) in nfs_pageio_stop_mirroring() argument
1442 nfs_pageio_complete(pgio); in nfs_pageio_stop_mirroring()