Lines Matching refs:pgio
998 static void nfs_pageio_setup_mirroring(struct nfs_pageio_descriptor *pgio, in nfs_pageio_setup_mirroring() argument
1003 if (pgio->pg_ops->pg_get_mirror_count) in nfs_pageio_setup_mirroring()
1004 mirror_count = pgio->pg_ops->pg_get_mirror_count(pgio, req); in nfs_pageio_setup_mirroring()
1005 if (mirror_count == pgio->pg_mirror_count || pgio->pg_error < 0) in nfs_pageio_setup_mirroring()
1009 pgio->pg_error = -EINVAL; in nfs_pageio_setup_mirroring()
1013 pgio->pg_mirrors = nfs_pageio_alloc_mirrors(pgio, mirror_count); in nfs_pageio_setup_mirroring()
1014 if (pgio->pg_mirrors == NULL) { in nfs_pageio_setup_mirroring()
1015 pgio->pg_error = -ENOMEM; in nfs_pageio_setup_mirroring()
1016 pgio->pg_mirrors = pgio->pg_mirrors_static; in nfs_pageio_setup_mirroring()
1019 pgio->pg_mirror_count = mirror_count; in nfs_pageio_setup_mirroring()
1022 static void nfs_pageio_cleanup_mirroring(struct nfs_pageio_descriptor *pgio) in nfs_pageio_cleanup_mirroring() argument
1024 pgio->pg_mirror_count = 1; in nfs_pageio_cleanup_mirroring()
1025 pgio->pg_mirror_idx = 0; in nfs_pageio_cleanup_mirroring()
1026 pgio->pg_mirrors = pgio->pg_mirrors_static; in nfs_pageio_cleanup_mirroring()
1027 kfree(pgio->pg_mirrors_dynamic); in nfs_pageio_cleanup_mirroring()
1028 pgio->pg_mirrors_dynamic = NULL; in nfs_pageio_cleanup_mirroring()
1051 struct nfs_pageio_descriptor *pgio) in nfs_coalesce_size() argument
1076 return pgio->pg_ops->pg_test(pgio, prev, req); in nfs_coalesce_size()
1431 void nfs_pageio_stop_mirroring(struct nfs_pageio_descriptor *pgio) in nfs_pageio_stop_mirroring() argument
1433 nfs_pageio_complete(pgio); in nfs_pageio_stop_mirroring()