Searched refs:pg_lseg (Results 1 – 6 of 6) sorted by relevance
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()[all …]
805 u64 segment_offset = pgio->pg_lseg->pls_range.offset; in filelayout_pg_test()806 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test()812 else if (!filelayout_lseg_is_striped(FILELAYOUT_LSEG(pgio->pg_lseg))) in filelayout_pg_test()877 if (!pgio->pg_lseg) { in filelayout_pg_init_read()878 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_read()885 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_read()886 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_read()887 pgio->pg_lseg = NULL; in filelayout_pg_init_read()892 if (pgio->pg_lseg == NULL) in filelayout_pg_init_read()901 if (!pgio->pg_lseg) { in filelayout_pg_init_write()[all …]
2686 if (pgio->pg_lseg == NULL || in pnfs_generic_pg_check_layout()2687 test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags)) in pnfs_generic_pg_check_layout()2689 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()2690 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()2701 if (pgio->pg_lseg && !pnfs_lseg_request_intersecting(pgio->pg_lseg, req)) { in pnfs_generic_pg_check_range()2702 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_range()2703 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_range()2715 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_read()2721 pgio->pg_lseg = in pnfs_generic_pg_init_read()2726 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_read()[all …]
846 desc->pg_lseg = NULL; in nfs_pageio_init()
841 if (pgio->pg_lseg && in bl_pg_init_read()842 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_read()843 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_read()844 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_read()903 if (pgio->pg_lseg && in bl_pg_init_write()904 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_write()906 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_write()907 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_write()
101 struct pnfs_layout_segment *pg_lseg; member