lgp               239 fs/nfs/nfs4_fs.h 	struct nfs4_layoutget *lgp;
lgp              1376 fs/nfs/nfs4proc.c 	nfs4_lgopen_release(p->lgp);
lgp              3015 fs/nfs/nfs4proc.c 	pnfs_parse_lgopen(state->inode, opendata->lgp, ctx);
lgp              8998 fs/nfs/nfs4proc.c 	struct nfs4_layoutget *lgp = calldata;
lgp              8999 fs/nfs/nfs4proc.c 	struct nfs_server *server = NFS_SERVER(lgp->args.inode);
lgp              9002 fs/nfs/nfs4proc.c 	nfs4_setup_sequence(server->nfs_client, &lgp->args.seq_args,
lgp              9003 fs/nfs/nfs4proc.c 				&lgp->res.seq_res, task);
lgp              9009 fs/nfs/nfs4proc.c 	struct nfs4_layoutget *lgp = calldata;
lgp              9012 fs/nfs/nfs4proc.c 	nfs41_sequence_process(task, &lgp->res.seq_res);
lgp              9018 fs/nfs/nfs4proc.c 		struct nfs4_layoutget *lgp, struct nfs4_exception *exception)
lgp              9020 fs/nfs/nfs4proc.c 	struct inode *inode = lgp->args.inode;
lgp              9029 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lgp->res.seq_res);
lgp              9059 fs/nfs/nfs4proc.c 		if (lgp->args.minlength == 0) {
lgp              9077 fs/nfs/nfs4proc.c 		    !nfs4_stateid_match_other(&lgp->args.stateid, &lo->plh_stateid)) {
lgp              9079 fs/nfs/nfs4proc.c 			exception->state = lgp->args.ctx->state;
lgp              9080 fs/nfs/nfs4proc.c 			exception->stateid = &lgp->args.stateid;
lgp              9115 fs/nfs/nfs4proc.c 	struct nfs4_layoutget *lgp = calldata;
lgp              9118 fs/nfs/nfs4proc.c 	nfs4_sequence_free_slot(&lgp->res.seq_res);
lgp              9119 fs/nfs/nfs4proc.c 	pnfs_layoutget_free(lgp);
lgp              9130 fs/nfs/nfs4proc.c nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout)
lgp              9132 fs/nfs/nfs4proc.c 	struct inode *inode = lgp->args.inode;
lgp              9137 fs/nfs/nfs4proc.c 		.rpc_argp = &lgp->args,
lgp              9138 fs/nfs/nfs4proc.c 		.rpc_resp = &lgp->res,
lgp              9139 fs/nfs/nfs4proc.c 		.rpc_cred = lgp->cred,
lgp              9145 fs/nfs/nfs4proc.c 		.callback_data = lgp,
lgp              9160 fs/nfs/nfs4proc.c 	nfs4_init_sequence(&lgp->args.seq_args, &lgp->res.seq_res, 0, 0);
lgp              9170 fs/nfs/nfs4proc.c 		status = nfs4_layoutget_handle_exception(task, lgp, &exception);
lgp              9172 fs/nfs/nfs4proc.c 	} else if (lgp->res.layoutp->len == 0) {
lgp              9176 fs/nfs/nfs4proc.c 		lseg = pnfs_layout_process(lgp);
lgp              9178 fs/nfs/nfs4proc.c 	trace_nfs4_layoutget(lgp->args.ctx,
lgp              9179 fs/nfs/nfs4proc.c 			&lgp->args.range,
lgp              9180 fs/nfs/nfs4proc.c 			&lgp->res.range,
lgp              9181 fs/nfs/nfs4proc.c 			&lgp->res.stateid,
lgp              1019 fs/nfs/pnfs.c  	struct nfs4_layoutget *lgp;
lgp              1023 fs/nfs/pnfs.c  	lgp = kzalloc(sizeof(*lgp), gfp_flags);
lgp              1024 fs/nfs/pnfs.c  	if (lgp == NULL)
lgp              1033 fs/nfs/pnfs.c  	lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags);
lgp              1034 fs/nfs/pnfs.c  	if (!lgp->args.layout.pages) {
lgp              1035 fs/nfs/pnfs.c  		kfree(lgp);
lgp              1038 fs/nfs/pnfs.c  	lgp->args.layout.pglen = max_pages * PAGE_SIZE;
lgp              1039 fs/nfs/pnfs.c  	lgp->res.layoutp = &lgp->args.layout;
lgp              1042 fs/nfs/pnfs.c  	lgp->res.status = -NFS4ERR_DELAY;
lgp              1044 fs/nfs/pnfs.c  	lgp->args.minlength = PAGE_SIZE;
lgp              1045 fs/nfs/pnfs.c  	if (lgp->args.minlength > range->length)
lgp              1046 fs/nfs/pnfs.c  		lgp->args.minlength = range->length;
lgp              1052 fs/nfs/pnfs.c  				lgp->args.minlength = 0;
lgp              1053 fs/nfs/pnfs.c  			else if (i_size - range->offset < lgp->args.minlength)
lgp              1054 fs/nfs/pnfs.c  				lgp->args.minlength = i_size - range->offset;
lgp              1057 fs/nfs/pnfs.c  	lgp->args.maxcount = PNFS_LAYOUT_MAXSIZE;
lgp              1058 fs/nfs/pnfs.c  	pnfs_copy_range(&lgp->args.range, range);
lgp              1059 fs/nfs/pnfs.c  	lgp->args.type = server->pnfs_curr_ld->id;
lgp              1060 fs/nfs/pnfs.c  	lgp->args.inode = ino;
lgp              1061 fs/nfs/pnfs.c  	lgp->args.ctx = get_nfs_open_context(ctx);
lgp              1062 fs/nfs/pnfs.c  	nfs4_stateid_copy(&lgp->args.stateid, stateid);
lgp              1063 fs/nfs/pnfs.c  	lgp->gfp_flags = gfp_flags;
lgp              1064 fs/nfs/pnfs.c  	lgp->cred = get_cred(ctx->cred);
lgp              1065 fs/nfs/pnfs.c  	return lgp;
lgp              1068 fs/nfs/pnfs.c  void pnfs_layoutget_free(struct nfs4_layoutget *lgp)
lgp              1070 fs/nfs/pnfs.c  	size_t max_pages = lgp->args.layout.pglen / PAGE_SIZE;
lgp              1072 fs/nfs/pnfs.c  	nfs4_free_pages(lgp->args.layout.pages, max_pages);
lgp              1073 fs/nfs/pnfs.c  	if (lgp->args.inode)
lgp              1074 fs/nfs/pnfs.c  		pnfs_put_layout_hdr(NFS_I(lgp->args.inode)->layout);
lgp              1075 fs/nfs/pnfs.c  	put_cred(lgp->cred);
lgp              1076 fs/nfs/pnfs.c  	put_nfs_open_context(lgp->args.ctx);
lgp              1077 fs/nfs/pnfs.c  	kfree(lgp);
lgp              1898 fs/nfs/pnfs.c  	struct nfs4_layoutget *lgp;
lgp              2053 fs/nfs/pnfs.c  	lgp = pnfs_alloc_init_layoutget_args(ino, ctx, &stateid, &arg, gfp_flags);
lgp              2054 fs/nfs/pnfs.c  	if (!lgp) {
lgp              2061 fs/nfs/pnfs.c  	lseg = nfs4_proc_layoutget(lgp, &timeout);
lgp              2175 fs/nfs/pnfs.c  	struct nfs4_layoutget *lgp;
lgp              2186 fs/nfs/pnfs.c  	lgp = pnfs_alloc_init_layoutget_args(ino, ctx, &current_stateid,
lgp              2188 fs/nfs/pnfs.c  	if (!lgp) {
lgp              2193 fs/nfs/pnfs.c  	data->lgp = lgp;
lgp              2194 fs/nfs/pnfs.c  	data->o_arg.lg_args = &lgp->args;
lgp              2195 fs/nfs/pnfs.c  	data->o_res.lg_res = &lgp->res;
lgp              2207 fs/nfs/pnfs.c  	struct nfs4_layoutget *lgp;
lgp              2209 fs/nfs/pnfs.c  	lgp = pnfs_alloc_init_layoutget_args(NULL, ctx, &current_stateid,
lgp              2211 fs/nfs/pnfs.c  	if (!lgp)
lgp              2213 fs/nfs/pnfs.c  	data->lgp = lgp;
lgp              2214 fs/nfs/pnfs.c  	data->o_arg.lg_args = &lgp->args;
lgp              2215 fs/nfs/pnfs.c  	data->o_res.lg_res = &lgp->res;
lgp              2235 fs/nfs/pnfs.c  void pnfs_parse_lgopen(struct inode *ino, struct nfs4_layoutget *lgp,
lgp              2243 fs/nfs/pnfs.c  	if (!lgp)
lgp              2245 fs/nfs/pnfs.c  	dprintk("%s: entered with status %i\n", __func__, lgp->res.status);
lgp              2246 fs/nfs/pnfs.c  	if (lgp->res.status) {
lgp              2247 fs/nfs/pnfs.c  		switch (lgp->res.status) {
lgp              2268 fs/nfs/pnfs.c  	if (!lgp->args.inode) {
lgp              2272 fs/nfs/pnfs.c  		lgp->args.inode = ino;
lgp              2274 fs/nfs/pnfs.c  		lo = NFS_I(lgp->args.inode)->layout;
lgp              2276 fs/nfs/pnfs.c  	lseg = pnfs_layout_process(lgp);
lgp              2278 fs/nfs/pnfs.c  		iomode = lgp->args.range.iomode;
lgp              2284 fs/nfs/pnfs.c  void nfs4_lgopen_release(struct nfs4_layoutget *lgp)
lgp              2286 fs/nfs/pnfs.c  	if (lgp != NULL) {
lgp              2287 fs/nfs/pnfs.c  		struct inode *inode = lgp->args.inode;
lgp              2293 fs/nfs/pnfs.c  		pnfs_layoutget_free(lgp);
lgp              2298 fs/nfs/pnfs.c  pnfs_layout_process(struct nfs4_layoutget *lgp)
lgp              2300 fs/nfs/pnfs.c  	struct pnfs_layout_hdr *lo = NFS_I(lgp->args.inode)->layout;
lgp              2301 fs/nfs/pnfs.c  	struct nfs4_layoutget_res *res = &lgp->res;
lgp              2310 fs/nfs/pnfs.c  	lseg = NFS_SERVER(ino)->pnfs_curr_ld->alloc_lseg(lo, res, lgp->gfp_flags);
lgp               235 fs/nfs/pnfs.h  extern struct pnfs_layout_segment* nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout);
lgp               254 fs/nfs/pnfs.h  struct pnfs_layout_segment *pnfs_layout_process(struct nfs4_layoutget *lgp);
lgp               255 fs/nfs/pnfs.h  void pnfs_layoutget_free(struct nfs4_layoutget *lgp);
lgp               394 fs/nfs/pnfs.h  void pnfs_parse_lgopen(struct inode *ino, struct nfs4_layoutget *lgp,
lgp               396 fs/nfs/pnfs.h  void nfs4_lgopen_release(struct nfs4_layoutget *lgp);
lgp               814 fs/nfs/pnfs.h  		struct nfs4_layoutget *lgp,
lgp               819 fs/nfs/pnfs.h  static inline void nfs4_lgopen_release(struct nfs4_layoutget *lgp)
lgp                18 fs/nfsd/blocklayoutxdr.c 		struct nfsd4_layoutget *lgp)
lgp                20 fs/nfsd/blocklayoutxdr.c 	struct pnfs_block_extent *b = lgp->lg_content;
lgp                56 fs/nfsd/blocklayoutxdr.h 		struct nfsd4_layoutget *lgp);
lgp                20 fs/nfsd/flexfilelayoutxdr.c 		struct nfsd4_layoutget *lgp)
lgp                22 fs/nfsd/flexfilelayoutxdr.c 	struct pnfs_ff_layout *fl = lgp->lg_content;
lgp                48 fs/nfsd/flexfilelayoutxdr.h 		struct nfsd4_layoutget *lgp);
lgp               402 fs/nfsd/nfs4layouts.c nfsd4_insert_layout(struct nfsd4_layoutget *lgp, struct nfs4_layout_stateid *ls)
lgp               404 fs/nfsd/nfs4layouts.c 	struct nfsd4_layout_seg *seg = &lgp->lg_seg;
lgp               441 fs/nfsd/nfs4layouts.c 	nfs4_inc_and_copy_stateid(&lgp->lg_sid, &ls->ls_stid);
lgp              1601 fs/nfsd/nfs4proc.c 	struct nfsd4_layoutget *lgp = &u->layoutget;
lgp              1608 fs/nfsd/nfs4proc.c 	switch (lgp->lg_seg.iomode) {
lgp              1617 fs/nfsd/nfs4proc.c 			__func__, lgp->lg_seg.iomode);
lgp              1627 fs/nfsd/nfs4proc.c 	ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type);
lgp              1643 fs/nfsd/nfs4proc.c 	if (lgp->lg_seg.length < lgp->lg_minlength ||
lgp              1644 fs/nfsd/nfs4proc.c 	    (lgp->lg_minlength != NFS4_MAX_UINT64 &&
lgp              1645 fs/nfsd/nfs4proc.c 	     lgp->lg_minlength > NFS4_MAX_UINT64 - lgp->lg_seg.offset) ||
lgp              1646 fs/nfsd/nfs4proc.c 	    (lgp->lg_seg.length != NFS4_MAX_UINT64 &&
lgp              1647 fs/nfsd/nfs4proc.c 	     lgp->lg_seg.length > NFS4_MAX_UINT64 - lgp->lg_seg.offset))
lgp              1649 fs/nfsd/nfs4proc.c 	if (lgp->lg_seg.length == 0)
lgp              1652 fs/nfsd/nfs4proc.c 	nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lgp->lg_sid,
lgp              1653 fs/nfsd/nfs4proc.c 						true, lgp->lg_layout_type, &ls);
lgp              1655 fs/nfsd/nfs4proc.c 		trace_nfsd_layout_get_lookup_fail(&lgp->lg_sid);
lgp              1664 fs/nfsd/nfs4proc.c 				     current_fh, lgp);
lgp              1668 fs/nfsd/nfs4proc.c 	nfserr = nfsd4_insert_layout(lgp, ls);
lgp              1606 fs/nfsd/nfs4xdr.c 		struct nfsd4_layoutget *lgp)
lgp              1611 fs/nfsd/nfs4xdr.c 	lgp->lg_signal = be32_to_cpup(p++);
lgp              1612 fs/nfsd/nfs4xdr.c 	lgp->lg_layout_type = be32_to_cpup(p++);
lgp              1613 fs/nfsd/nfs4xdr.c 	lgp->lg_seg.iomode = be32_to_cpup(p++);
lgp              1614 fs/nfsd/nfs4xdr.c 	p = xdr_decode_hyper(p, &lgp->lg_seg.offset);
lgp              1615 fs/nfsd/nfs4xdr.c 	p = xdr_decode_hyper(p, &lgp->lg_seg.length);
lgp              1616 fs/nfsd/nfs4xdr.c 	p = xdr_decode_hyper(p, &lgp->lg_minlength);
lgp              1618 fs/nfsd/nfs4xdr.c 	status = nfsd4_decode_stateid(argp, &lgp->lg_sid);
lgp              1623 fs/nfsd/nfs4xdr.c 	lgp->lg_maxcount = be32_to_cpup(p++);
lgp              4165 fs/nfsd/nfs4xdr.c 		struct nfsd4_layoutget *lgp)
lgp              4176 fs/nfsd/nfs4xdr.c 	*p++ = cpu_to_be32(lgp->lg_sid.si_generation);
lgp              4177 fs/nfsd/nfs4xdr.c 	p = xdr_encode_opaque_fixed(p, &lgp->lg_sid.si_opaque,
lgp              4181 fs/nfsd/nfs4xdr.c 	p = xdr_encode_hyper(p, lgp->lg_seg.offset);
lgp              4182 fs/nfsd/nfs4xdr.c 	p = xdr_encode_hyper(p, lgp->lg_seg.length);
lgp              4183 fs/nfsd/nfs4xdr.c 	*p++ = cpu_to_be32(lgp->lg_seg.iomode);
lgp              4184 fs/nfsd/nfs4xdr.c 	*p++ = cpu_to_be32(lgp->lg_layout_type);
lgp              4186 fs/nfsd/nfs4xdr.c 	ops = nfsd4_layout_ops[lgp->lg_layout_type];
lgp              4187 fs/nfsd/nfs4xdr.c 	return ops->encode_layoutget(xdr, lgp);
lgp                33 fs/nfsd/pnfs.h 			struct nfsd4_layoutget *lgp);
lgp                35 fs/nfsd/pnfs.h 			struct nfsd4_layoutget *lgp);
lgp                57 fs/nfsd/pnfs.h __be32 nfsd4_insert_layout(struct nfsd4_layoutget *lgp,