Searched refs:lgp (Results 1 – 12 of 12) sorted by relevance
/Linux-v6.1/fs/nfs/ |
D | pnfs.c | 1092 struct nfs4_layoutget *lgp; in pnfs_alloc_init_layoutget_args() local 1096 lgp = kzalloc(sizeof(*lgp), gfp_flags); in pnfs_alloc_init_layoutget_args() 1097 if (lgp == NULL) in pnfs_alloc_init_layoutget_args() 1106 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags); in pnfs_alloc_init_layoutget_args() 1107 if (!lgp->args.layout.pages) { in pnfs_alloc_init_layoutget_args() 1108 kfree(lgp); in pnfs_alloc_init_layoutget_args() 1111 lgp->args.layout.pglen = max_pages * PAGE_SIZE; in pnfs_alloc_init_layoutget_args() 1112 lgp->res.layoutp = &lgp->args.layout; in pnfs_alloc_init_layoutget_args() 1115 lgp->res.status = -NFS4ERR_DELAY; in pnfs_alloc_init_layoutget_args() 1117 lgp->args.minlength = PAGE_SIZE; in pnfs_alloc_init_layoutget_args() [all …]
|
D | pnfs.h | 248 extern struct pnfs_layout_segment* nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout); 268 struct pnfs_layout_segment *pnfs_layout_process(struct nfs4_layoutget *lgp); 269 void pnfs_layoutget_free(struct nfs4_layoutget *lgp); 423 void pnfs_parse_lgopen(struct inode *ino, struct nfs4_layoutget *lgp, 425 void nfs4_lgopen_release(struct nfs4_layoutget *lgp); 906 struct nfs4_layoutget *lgp, in pnfs_parse_lgopen() argument 911 static inline void nfs4_lgopen_release(struct nfs4_layoutget *lgp) in nfs4_lgopen_release() argument
|
D | nfs4proc.c | 1448 nfs4_lgopen_release(p->lgp); in nfs4_opendata_free() 3086 pnfs_parse_lgopen(state->inode, opendata->lgp, ctx); in _nfs4_open_and_get_state() 3101 if (opendata->lgp) { in _nfs4_open_and_get_state() 3102 nfs4_lgopen_release(opendata->lgp); in _nfs4_open_and_get_state() 3103 opendata->lgp = NULL; in _nfs4_open_and_get_state() 9574 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_prepare() local 9575 struct nfs_server *server = NFS_SERVER(lgp->args.inode); in nfs4_layoutget_prepare() 9577 nfs4_setup_sequence(server->nfs_client, &lgp->args.seq_args, in nfs4_layoutget_prepare() 9578 &lgp->res.seq_res, task); in nfs4_layoutget_prepare() 9583 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_done() local [all …]
|
D | nfs4_fs.h | 243 struct nfs4_layoutget *lgp; member
|
/Linux-v6.1/fs/nfsd/ |
D | pnfs.h | 33 struct nfsd4_layoutget *lgp); 35 struct nfsd4_layoutget *lgp); 57 __be32 nfsd4_insert_layout(struct nfsd4_layoutget *lgp,
|
D | flexfilelayoutxdr.c | 20 struct nfsd4_layoutget *lgp) in nfsd4_ff_encode_layoutget() argument 22 struct pnfs_ff_layout *fl = lgp->lg_content; in nfsd4_ff_encode_layoutget()
|
D | flexfilelayoutxdr.h | 48 struct nfsd4_layoutget *lgp);
|
D | blocklayoutxdr.c | 18 struct nfsd4_layoutget *lgp) in nfsd4_block_encode_layoutget() argument 20 struct pnfs_block_extent *b = lgp->lg_content; in nfsd4_block_encode_layoutget()
|
D | blocklayoutxdr.h | 56 struct nfsd4_layoutget *lgp);
|
D | nfs4proc.c | 2200 struct nfsd4_layoutget *lgp = &u->layoutget; in nfsd4_layoutget() local 2207 switch (lgp->lg_seg.iomode) { in nfsd4_layoutget() 2216 __func__, lgp->lg_seg.iomode); in nfsd4_layoutget() 2226 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget() 2242 if (lgp->lg_seg.length < lgp->lg_minlength || in nfsd4_layoutget() 2243 (lgp->lg_minlength != NFS4_MAX_UINT64 && in nfsd4_layoutget() 2244 lgp->lg_minlength > NFS4_MAX_UINT64 - lgp->lg_seg.offset) || in nfsd4_layoutget() 2245 (lgp->lg_seg.length != NFS4_MAX_UINT64 && in nfsd4_layoutget() 2246 lgp->lg_seg.length > NFS4_MAX_UINT64 - lgp->lg_seg.offset)) in nfsd4_layoutget() 2248 if (lgp->lg_seg.length == 0) in nfsd4_layoutget() [all …]
|
D | nfs4xdr.c | 1756 struct nfsd4_layoutget *lgp) in nfsd4_decode_layoutget() argument 1760 memset(lgp, 0, sizeof(*lgp)); in nfsd4_decode_layoutget() 1761 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_signal) < 0) in nfsd4_decode_layoutget() 1763 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_layout_type) < 0) in nfsd4_decode_layoutget() 1765 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_seg.iomode) < 0) in nfsd4_decode_layoutget() 1767 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_seg.offset) < 0) in nfsd4_decode_layoutget() 1769 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_seg.length) < 0) in nfsd4_decode_layoutget() 1771 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_minlength) < 0) in nfsd4_decode_layoutget() 1773 status = nfsd4_decode_stateid4(argp, &lgp->lg_sid); in nfsd4_decode_layoutget() 1776 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_maxcount) < 0) in nfsd4_decode_layoutget() [all …]
|
D | nfs4layouts.c | 403 nfsd4_insert_layout(struct nfsd4_layoutget *lgp, struct nfs4_layout_stateid *ls) in nfsd4_insert_layout() argument 405 struct nfsd4_layout_seg *seg = &lgp->lg_seg; in nfsd4_insert_layout() 442 nfs4_inc_and_copy_stateid(&lgp->lg_sid, &ls->ls_stid); in nfsd4_insert_layout()
|