Lines Matching refs:pgio

61 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 static void nfs_pageio_complete_read(struct nfs_pageio_descriptor *pgio) in nfs_pageio_complete_read() argument
82 nfs_pageio_complete(pgio); in nfs_pageio_complete_read()
85 WARN_ON_ONCE(pgio->pg_mirror_count != 1); in nfs_pageio_complete_read()
87 pgm = &pgio->pg_mirrors[0]; in nfs_pageio_complete_read()
88 NFS_I(pgio->pg_inode)->read_io += pgm->pg_bytes_written; in nfs_pageio_complete_read()
90 nfs_add_stats(pgio->pg_inode, NFSIOS_READPAGES, npages); in nfs_pageio_complete_read()
94 void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio) in nfs_pageio_reset_read_mds() argument
98 if (pgio->pg_ops && pgio->pg_ops->pg_cleanup) in nfs_pageio_reset_read_mds()
99 pgio->pg_ops->pg_cleanup(pgio); in nfs_pageio_reset_read_mds()
101 pgio->pg_ops = &nfs_pgio_rw_ops; in nfs_pageio_reset_read_mds()
104 WARN_ON_ONCE(pgio->pg_mirror_count != 1); in nfs_pageio_reset_read_mds()
106 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_read_mds()
107 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; in nfs_pageio_reset_read_mds()
131 struct nfs_pageio_descriptor pgio; member
311 if (!nfs_pageio_add_request(&desc->pgio, new)) { in readpage_async_filler()
313 error = desc->pgio.pg_error; in readpage_async_filler()
368 nfs_pageio_init_read(&desc.pgio, inode, false, in nfs_read_folio()
375 nfs_pageio_complete_read(&desc.pgio); in nfs_read_folio()
376 ret = desc.pgio.pg_error < 0 ? desc.pgio.pg_error : 0; in nfs_read_folio()
416 nfs_pageio_init_read(&desc.pgio, inode, false, in nfs_readahead()
426 nfs_pageio_complete_read(&desc.pgio); in nfs_readahead()