Lines Matching refs:pgio

799 filelayout_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev,  in filelayout_pg_test()  argument
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()
809 size = pnfs_generic_pg_test(pgio, prev, req); in filelayout_pg_test()
812 else if (!filelayout_lseg_is_striped(FILELAYOUT_LSEG(pgio->pg_lseg))) in filelayout_pg_test()
873 filelayout_pg_init_read(struct nfs_pageio_descriptor *pgio, in filelayout_pg_init_read() argument
876 pnfs_generic_pg_check_layout(pgio); in filelayout_pg_init_read()
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()
893 nfs_pageio_reset_read_mds(pgio); in filelayout_pg_init_read()
897 filelayout_pg_init_write(struct nfs_pageio_descriptor *pgio, in filelayout_pg_init_write() argument
900 pnfs_generic_pg_check_layout(pgio); in filelayout_pg_init_write()
901 if (!pgio->pg_lseg) { in filelayout_pg_init_write()
902 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_write()
909 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_write()
910 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_write()
911 pgio->pg_lseg = NULL; in filelayout_pg_init_write()
917 if (pgio->pg_lseg == NULL) in filelayout_pg_init_write()
918 nfs_pageio_reset_write_mds(pgio); in filelayout_pg_init_write()