/* nfs_pageio_init - initialise a page io descriptor @desc: pointer to descriptor @inode: pointer to inode @doio: pointer to io function @bsize: io block size @io_flags: extra parameters for the io function  */
void nfs_pageio_init(struct nfs_pageio_descriptor *desc, struct inode *inode, int(*doio)(struct inode *, struct list_head *, unsigned int, size_t, int), size_t bsize, int io_flags)
/* nfs_pageio_init - initialise a page io descriptor @desc: pointer to descriptor @inode: pointer to inode @doio: pointer to io function @bsize: io block size @io_flags: extra parameters for the io function  */
void nfs_pageio_init(struct nfs_pageio_descriptor *desc, struct inode *inode, int(*doio)(struct inode *, struct list_head *, unsigned int, size_t, int), size_t bsize, int io_flags)
{
	INIT_LIST_HEAD(&desc->pg_list);
	desc->pg_bytes_written = 0;
	desc->pg_count = 0;
	desc->pg_bsize = bsize;
	desc->pg_base = 0;
	desc->pg_inode = inode;
	desc->pg_doio = doio;
	desc->pg_ioflags = io_flags;
	desc->pg_error = 0;
}