Lines Matching refs:pg_lseg

2706 	if (pgio->pg_lseg == NULL ||  in pnfs_generic_pg_check_layout()
2707 test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags)) in pnfs_generic_pg_check_layout()
2709 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()
2710 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()
2721 if (pgio->pg_lseg && !pnfs_lseg_request_intersecting(pgio->pg_lseg, req)) { in pnfs_generic_pg_check_range()
2722 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_range()
2723 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_range()
2735 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_read()
2742 pgio->pg_lseg = in pnfs_generic_pg_init_read()
2747 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_read()
2748 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in pnfs_generic_pg_init_read()
2749 pgio->pg_lseg = NULL; in pnfs_generic_pg_init_read()
2754 if (pgio->pg_lseg == NULL) in pnfs_generic_pg_init_read()
2766 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_write()
2767 pgio->pg_lseg = in pnfs_generic_pg_init_write()
2771 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_write()
2772 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in pnfs_generic_pg_init_write()
2773 pgio->pg_lseg = NULL; in pnfs_generic_pg_init_write()
2778 if (pgio->pg_lseg == NULL) in pnfs_generic_pg_init_write()
2786 if (desc->pg_lseg) { in pnfs_generic_pg_cleanup()
2787 pnfs_put_lseg(desc->pg_lseg); in pnfs_generic_pg_cleanup()
2788 desc->pg_lseg = NULL; in pnfs_generic_pg_cleanup()
2819 if (pgio->pg_lseg) { in pnfs_generic_pg_test()
2820 seg_end = pnfs_end_offset(pgio->pg_lseg->pls_range.offset, in pnfs_generic_pg_test()
2821 pgio->pg_lseg->pls_range.length); in pnfs_generic_pg_test()
2919 struct pnfs_layout_segment *lseg = desc->pg_lseg; in pnfs_do_write()
2959 hdr->lseg = pnfs_get_lseg(desc->pg_lseg); in pnfs_generic_pg_writepages()
3064 struct pnfs_layout_segment *lseg = desc->pg_lseg; in pnfs_do_read()
3103 hdr->lseg = pnfs_get_lseg(desc->pg_lseg); in pnfs_generic_pg_readpages()