Home
last modified time | relevance | path

Searched refs:pg_lseg (Results 1 – 6 of 6) sorted by relevance

/linux/fs/nfs/filelayout/
H A Dfilelayout.c797 u64 segment_offset = pgio->pg_lseg->pls_range.offset; in filelayout_pg_test()
798 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test()
804 else if (!filelayout_lseg_is_striped(FILELAYOUT_LSEG(pgio->pg_lseg))) in filelayout_pg_test()
871 if (!pgio->pg_lseg) { in filelayout_pg_init_read()
872 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_read()
879 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_read()
880 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_read()
881 pgio->pg_lseg = NULL; in filelayout_pg_init_read()
886 if (pgio->pg_lseg == NULL) in filelayout_pg_init_read()
895 if (!pgio->pg_lseg) { in filelayout_pg_init_write()
[all …]
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c815 struct pnfs_layout_segment *lseg = pgio->pg_lseg; in ff_layout_get_ds_for_read()
830 pnfs_put_lseg(pgio->pg_lseg); in ff_layout_pg_get_read()
831 pgio->pg_lseg = in ff_layout_pg_get_read()
835 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_get_read()
836 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_get_read()
837 pgio->pg_lseg = NULL; in ff_layout_pg_get_read()
853 if (!pgio->pg_lseg) { in ff_layout_pg_init_read()
855 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
858 if (ff_layout_avoid_read_on_rw(pgio->pg_lseg)) { in ff_layout_pg_init_read()
860 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
[all …]
/linux/fs/nfs/
H A Dpnfs.c2837 if (pgio->pg_lseg == NULL || in pnfs_generic_pg_check_layout()
2838 (test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags) && in pnfs_generic_pg_check_layout()
2839 pnfs_lseg_request_intersecting(pgio->pg_lseg, req))) in pnfs_generic_pg_check_layout()
2841 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()
2842 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()
2852 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_read()
2859 pgio->pg_lseg = in pnfs_generic_pg_init_read()
2864 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_read()
2865 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in pnfs_generic_pg_init_read()
2866 pgio->pg_lseg = NULL; in pnfs_generic_pg_init_read()
[all …]
H A Dpagelist.c833 desc->pg_lseg = NULL; in nfs_pageio_init()
/linux/fs/nfs/blocklayout/
H A Dblocklayout.c863 if (pgio->pg_lseg && in bl_pg_init_read()
864 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_read()
865 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_read()
866 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_read()
924 if (pgio->pg_lseg && in bl_pg_init_write()
925 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_write()
927 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_write()
928 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_write()
/linux/include/linux/
H A Dnfs_page.h105 struct pnfs_layout_segment *pg_lseg; member