Lines Matching refs:pg_lseg
859 u64 segment_offset = pgio->pg_lseg->pls_range.offset; in filelayout_pg_test()
860 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test()
866 else if (!filelayout_lseg_is_striped(FILELAYOUT_LSEG(pgio->pg_lseg))) in filelayout_pg_test()
926 if (!pgio->pg_lseg) { in filelayout_pg_init_read()
927 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_read()
934 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_read()
935 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_read()
936 pgio->pg_lseg = NULL; in filelayout_pg_init_read()
941 if (pgio->pg_lseg == NULL) in filelayout_pg_init_read()
953 if (!pgio->pg_lseg) { in filelayout_pg_init_write()
954 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_write()
961 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_write()
962 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_write()
963 pgio->pg_lseg = NULL; in filelayout_pg_init_write()
969 if (pgio->pg_lseg == NULL) in filelayout_pg_init_write()
972 status = filelayout_alloc_commit_info(pgio->pg_lseg, &cinfo, GFP_NOFS); in filelayout_pg_init_write()
974 pnfs_put_lseg(pgio->pg_lseg); in filelayout_pg_init_write()
975 pgio->pg_lseg = NULL; in filelayout_pg_init_write()