Home
last modified time | relevance | path

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

/linux-4.19.296/fs/nfs/flexfilelayout/
Dflexfilelayout.c815 pnfs_put_lseg(pgio->pg_lseg); in ff_layout_pg_get_read()
816 pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode, in ff_layout_pg_get_read()
823 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_get_read()
824 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_get_read()
825 pgio->pg_lseg = NULL; in ff_layout_pg_get_read()
841 if (!pgio->pg_lseg) { in ff_layout_pg_init_read()
843 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
846 if (ff_layout_avoid_read_on_rw(pgio->pg_lseg)) { in ff_layout_pg_init_read()
848 if (!pgio->pg_lseg) in ff_layout_pg_init_read()
852 ds = ff_layout_choose_best_ds_for_read(pgio->pg_lseg, 0, &ds_idx); in ff_layout_pg_init_read()
[all …]
/linux-4.19.296/fs/nfs/filelayout/
Dfilelayout.c859 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()
[all …]
/linux-4.19.296/fs/nfs/
Dpnfs.c2451 if (pgio->pg_lseg == NULL || in pnfs_generic_pg_check_layout()
2452 test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags)) in pnfs_generic_pg_check_layout()
2454 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()
2455 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()
2466 if (pgio->pg_lseg && !pnfs_lseg_request_intersecting(pgio->pg_lseg, req)) { in pnfs_generic_pg_check_range()
2467 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_range()
2468 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_range()
2479 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_read()
2485 pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode, in pnfs_generic_pg_init_read()
2492 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_read()
[all …]
Dpagelist.c716 desc->pg_lseg = NULL; in nfs_pageio_init()
/linux-4.19.296/fs/nfs/blocklayout/
Dblocklayout.c865 if (pgio->pg_lseg && in bl_pg_init_read()
866 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_read()
867 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_read()
868 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_read()
927 if (pgio->pg_lseg && in bl_pg_init_write()
928 test_bit(NFS_LSEG_UNAVAILABLE, &pgio->pg_lseg->pls_flags)) { in bl_pg_init_write()
930 pnfs_error_mark_layout_for_return(pgio->pg_inode, pgio->pg_lseg); in bl_pg_init_write()
931 pnfs_set_lo_fail(pgio->pg_lseg); in bl_pg_init_write()
/linux-4.19.296/include/linux/
Dnfs_page.h98 struct pnfs_layout_segment *pg_lseg; member