• Home
  • Raw
  • Download

Lines Matching refs:pgio

2692 pnfs_generic_pg_check_layout(struct nfs_pageio_descriptor *pgio)  in pnfs_generic_pg_check_layout()  argument
2694 if (pgio->pg_lseg == NULL || in pnfs_generic_pg_check_layout()
2695 test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags)) in pnfs_generic_pg_check_layout()
2697 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()
2698 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()
2707 pnfs_generic_pg_check_range(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) in pnfs_generic_pg_check_range() argument
2709 if (pgio->pg_lseg && !pnfs_lseg_request_intersecting(pgio->pg_lseg, req)) { in pnfs_generic_pg_check_range()
2710 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_range()
2711 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_range()
2717 pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) in pnfs_generic_pg_init_read() argument
2721 pnfs_generic_pg_check_layout(pgio); in pnfs_generic_pg_init_read()
2722 pnfs_generic_pg_check_range(pgio, req); in pnfs_generic_pg_init_read()
2723 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_read()
2724 if (pgio->pg_dreq == NULL) in pnfs_generic_pg_init_read()
2725 rd_size = i_size_read(pgio->pg_inode) - req_offset(req); in pnfs_generic_pg_init_read()
2727 rd_size = nfs_dreq_bytes_left(pgio->pg_dreq); in pnfs_generic_pg_init_read()
2729 pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode, in pnfs_generic_pg_init_read()
2736 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_read()
2737 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in pnfs_generic_pg_init_read()
2738 pgio->pg_lseg = NULL; in pnfs_generic_pg_init_read()
2743 if (pgio->pg_lseg == NULL) in pnfs_generic_pg_init_read()
2744 nfs_pageio_reset_read_mds(pgio); in pnfs_generic_pg_init_read()
2750 pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *pgio, in pnfs_generic_pg_init_write() argument
2753 pnfs_generic_pg_check_layout(pgio); in pnfs_generic_pg_init_write()
2754 pnfs_generic_pg_check_range(pgio, req); in pnfs_generic_pg_init_write()
2755 if (pgio->pg_lseg == NULL) { in pnfs_generic_pg_init_write()
2756 pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode, in pnfs_generic_pg_init_write()
2763 if (IS_ERR(pgio->pg_lseg)) { in pnfs_generic_pg_init_write()
2764 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in pnfs_generic_pg_init_write()
2765 pgio->pg_lseg = NULL; in pnfs_generic_pg_init_write()
2770 if (pgio->pg_lseg == NULL) in pnfs_generic_pg_init_write()
2771 nfs_pageio_reset_write_mds(pgio); in pnfs_generic_pg_init_write()
2790 pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio, in pnfs_generic_pg_test() argument
2796 size = nfs_generic_pg_test(pgio, prev, req); in pnfs_generic_pg_test()
2811 if (pgio->pg_lseg) { in pnfs_generic_pg_test()
2812 seg_end = pnfs_end_offset(pgio->pg_lseg->pls_range.offset, in pnfs_generic_pg_test()
2813 pgio->pg_lseg->pls_range.length); in pnfs_generic_pg_test()
2833 struct nfs_pageio_descriptor pgio; in pnfs_write_done_resend_to_mds() local
2836 nfs_pageio_init_write(&pgio, hdr->inode, FLUSH_STABLE, true, in pnfs_write_done_resend_to_mds()
2839 return nfs_pageio_resend(&pgio, hdr); in pnfs_write_done_resend_to_mds()
2963 struct nfs_pageio_descriptor pgio; in pnfs_read_done_resend_to_mds() local
2966 nfs_pageio_init_read(&pgio, hdr->inode, true, hdr->completion_ops); in pnfs_read_done_resend_to_mds()
2967 return nfs_pageio_resend(&pgio, hdr); in pnfs_read_done_resend_to_mds()
3038 struct nfs_pageio_descriptor pgio; in pnfs_read_resend_pnfs() local
3045 nfs_pageio_init_read(&pgio, hdr->inode, false, in pnfs_read_resend_pnfs()
3047 pgio.pg_mirror_idx = mirror_idx; in pnfs_read_resend_pnfs()
3048 hdr->task.tk_status = nfs_pageio_resend(&pgio, hdr); in pnfs_read_resend_pnfs()