Lines Matching refs:pg_lseg

799 	struct pnfs_layout_segment *lseg = pgio->pg_lseg;  in ff_layout_get_ds_for_read()
814 pnfs_put_lseg(pgio->pg_lseg); in ff_layout_pg_get_read()
815 pgio->pg_lseg = in ff_layout_pg_get_read()
819 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_get_read()
820 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_get_read()
821 pgio->pg_lseg = NULL; in ff_layout_pg_get_read()
845 if (!pgio->pg_lseg) { in ff_layout_pg_init_read()
847 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
850 if (ff_layout_avoid_read_on_rw(pgio->pg_lseg)) { in ff_layout_pg_init_read()
852 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
858 if (!ff_layout_no_fallback_to_mds(pgio->pg_lseg)) in ff_layout_pg_init_read()
866 mirror = FF_LAYOUT_COMP(pgio->pg_lseg, ds_idx); in ff_layout_pg_init_read()
883 pgio->pg_lseg); in ff_layout_pg_init_read()
899 if (!pgio->pg_lseg) { in ff_layout_pg_init_write()
900 pgio->pg_lseg = in ff_layout_pg_init_write()
904 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_init_write()
905 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_init_write()
906 pgio->pg_lseg = NULL; in ff_layout_pg_init_write()
911 if (pgio->pg_lseg == NULL) in ff_layout_pg_init_write()
915 if (pgio->pg_mirror_count != FF_LAYOUT_MIRROR_COUNT(pgio->pg_lseg)) in ff_layout_pg_init_write()
919 mirror = FF_LAYOUT_COMP(pgio->pg_lseg, i); in ff_layout_pg_init_write()
920 ds = nfs4_ff_layout_prepare_ds(pgio->pg_lseg, mirror, true); in ff_layout_pg_init_write()
922 if (!ff_layout_no_fallback_to_mds(pgio->pg_lseg)) in ff_layout_pg_init_write()
945 pgio->pg_lseg); in ff_layout_pg_init_write()
955 if (!pgio->pg_lseg) { in ff_layout_pg_get_mirror_count_write()
956 pgio->pg_lseg = in ff_layout_pg_get_mirror_count_write()
960 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_get_mirror_count_write()
961 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_get_mirror_count_write()
962 pgio->pg_lseg = NULL; in ff_layout_pg_get_mirror_count_write()
966 if (pgio->pg_lseg) in ff_layout_pg_get_mirror_count_write()
967 return FF_LAYOUT_MIRROR_COUNT(pgio->pg_lseg); in ff_layout_pg_get_mirror_count_write()
972 pgio->pg_lseg); in ff_layout_pg_get_mirror_count_write()