Home
last modified time | relevance | path

Searched refs:pgio (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/fs/nfs/
Dread.c61 void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, in nfs_pageio_init_read() argument
72 nfs_pageio_init(pgio, inode, pg_ops, compl_ops, &nfs_rw_read_ops, in nfs_pageio_init_read()
77 void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio) in nfs_pageio_reset_read_mds() argument
81 if (pgio->pg_ops && pgio->pg_ops->pg_cleanup) in nfs_pageio_reset_read_mds()
82 pgio->pg_ops->pg_cleanup(pgio); in nfs_pageio_reset_read_mds()
84 pgio->pg_ops = &nfs_pgio_rw_ops; in nfs_pageio_reset_read_mds()
87 WARN_ON_ONCE(pgio->pg_mirror_count != 1); in nfs_pageio_reset_read_mds()
89 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_read_mds()
90 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; in nfs_pageio_reset_read_mds()
122 struct nfs_pageio_descriptor pgio; in nfs_readpage_async() local
[all …]
Dpagelist.c1000 static void nfs_pageio_setup_mirroring(struct nfs_pageio_descriptor *pgio, in nfs_pageio_setup_mirroring() argument
1005 if (pgio->pg_ops->pg_get_mirror_count) in nfs_pageio_setup_mirroring()
1006 mirror_count = pgio->pg_ops->pg_get_mirror_count(pgio, req); in nfs_pageio_setup_mirroring()
1007 if (mirror_count == pgio->pg_mirror_count || pgio->pg_error < 0) in nfs_pageio_setup_mirroring()
1011 pgio->pg_error = -EINVAL; in nfs_pageio_setup_mirroring()
1015 pgio->pg_mirrors = nfs_pageio_alloc_mirrors(pgio, mirror_count); in nfs_pageio_setup_mirroring()
1016 if (pgio->pg_mirrors == NULL) { in nfs_pageio_setup_mirroring()
1017 pgio->pg_error = -ENOMEM; in nfs_pageio_setup_mirroring()
1018 pgio->pg_mirrors = pgio->pg_mirrors_static; in nfs_pageio_setup_mirroring()
1021 pgio->pg_mirror_count = mirror_count; in nfs_pageio_setup_mirroring()
[all …]
Dwrite.c605 static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio, in nfs_page_async_flush() argument
622 ret = pgio->pg_error; in nfs_page_async_flush()
627 if (!nfs_pageio_add_request(pgio, req)) { in nfs_page_async_flush()
628 ret = pgio->pg_error; in nfs_page_async_flush()
638 pgio->pg_error = 0; in nfs_page_async_flush()
650 struct nfs_pageio_descriptor *pgio) in nfs_do_writepage() argument
654 nfs_pageio_cond_complete(pgio, page_index(page)); in nfs_do_writepage()
655 ret = nfs_page_async_flush(pgio, page); in nfs_do_writepage()
669 struct nfs_pageio_descriptor pgio; in nfs_writepage_locked() local
674 nfs_pageio_init_write(&pgio, inode, 0, in nfs_writepage_locked()
[all …]
Dpnfs.c2661 pnfs_generic_pg_check_layout(struct nfs_pageio_descriptor *pgio) in pnfs_generic_pg_check_layout() argument
2663 if (pgio->pg_lseg == NULL || in pnfs_generic_pg_check_layout()
2664 test_bit(NFS_LSEG_VALID, &pgio->pg_lseg->pls_flags)) in pnfs_generic_pg_check_layout()
2666 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_layout()
2667 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_layout()
2676 pnfs_generic_pg_check_range(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) in pnfs_generic_pg_check_range() argument
2678 if (pgio->pg_lseg && !pnfs_lseg_request_intersecting(pgio->pg_lseg, req)) { in pnfs_generic_pg_check_range()
2679 pnfs_put_lseg(pgio->pg_lseg); in pnfs_generic_pg_check_range()
2680 pgio->pg_lseg = NULL; in pnfs_generic_pg_check_range()
2686 pnfs_generic_pg_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) in pnfs_generic_pg_init_read() argument
[all …]
Dinternal.h466 extern void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio,
470 extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio);
482 extern void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio,
485 extern void nfs_pageio_reset_write_mds(struct nfs_pageio_descriptor *pgio);
528 void nfs_pageio_stop_mirroring(struct nfs_pageio_descriptor *pgio);
Dpnfs.h254 void pnfs_generic_pg_check_layout(struct nfs_pageio_descriptor *pgio);
255 void pnfs_generic_pg_check_range(struct nfs_pageio_descriptor *pgio, struct nfs_page *req);
258 void pnfs_generic_pg_init_write(struct nfs_pageio_descriptor *pgio,
262 size_t pnfs_generic_pg_test(struct nfs_pageio_descriptor *pgio,
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/
Dflexfilelayout.c794 ff_layout_get_ds_for_read(struct nfs_pageio_descriptor *pgio, in ff_layout_get_ds_for_read() argument
797 struct pnfs_layout_segment *lseg = pgio->pg_lseg; in ff_layout_get_ds_for_read()
800 ds = ff_layout_choose_best_ds_for_read(lseg, pgio->pg_mirror_idx, in ff_layout_get_ds_for_read()
802 if (ds || !pgio->pg_mirror_idx) in ff_layout_get_ds_for_read()
808 ff_layout_pg_get_read(struct nfs_pageio_descriptor *pgio, in ff_layout_pg_get_read() argument
812 pnfs_put_lseg(pgio->pg_lseg); in ff_layout_pg_get_read()
813 pgio->pg_lseg = pnfs_update_layout(pgio->pg_inode, in ff_layout_pg_get_read()
820 if (IS_ERR(pgio->pg_lseg)) { in ff_layout_pg_get_read()
821 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in ff_layout_pg_get_read()
822 pgio->pg_lseg = NULL; in ff_layout_pg_get_read()
[all …]
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Dblocklayout.c824 is_aligned_req(struct nfs_pageio_descriptor *pgio, in is_aligned_req() argument
831 if (pgio->pg_dreq == NULL) in is_aligned_req()
841 (req_offset(req) + req->wb_bytes == i_size_read(pgio->pg_inode))) { in is_aligned_req()
856 bl_pg_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) in bl_pg_init_read() argument
858 if (!is_aligned_req(pgio, req, SECTOR_SIZE, false)) { in bl_pg_init_read()
859 nfs_pageio_reset_read_mds(pgio); in bl_pg_init_read()
863 pnfs_generic_pg_init_read(pgio, req); in bl_pg_init_read()
865 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()
[all …]
/kernel/linux/linux-5.10/fs/nfs/filelayout/
Dfilelayout.c793 filelayout_pg_test(struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, in filelayout_pg_test() argument
799 u64 segment_offset = pgio->pg_lseg->pls_range.offset; in filelayout_pg_test()
800 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test()
803 size = pnfs_generic_pg_test(pgio, prev, req); in filelayout_pg_test()
860 filelayout_pg_init_read(struct nfs_pageio_descriptor *pgio, in filelayout_pg_init_read() argument
863 pnfs_generic_pg_check_layout(pgio); in filelayout_pg_init_read()
864 if (!pgio->pg_lseg) { in filelayout_pg_init_read()
865 pgio->pg_lseg = fl_pnfs_update_layout(pgio->pg_inode, in filelayout_pg_init_read()
872 if (IS_ERR(pgio->pg_lseg)) { in filelayout_pg_init_read()
873 pgio->pg_error = PTR_ERR(pgio->pg_lseg); in filelayout_pg_init_read()
[all …]