Home
last modified time | relevance | path

Searched refs:lgp (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/fs/nfs/
Dpnfs.c1081 struct nfs4_layoutget *lgp; in pnfs_alloc_init_layoutget_args() local
1085 lgp = kzalloc(sizeof(*lgp), gfp_flags); in pnfs_alloc_init_layoutget_args()
1086 if (lgp == NULL) in pnfs_alloc_init_layoutget_args()
1095 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags); in pnfs_alloc_init_layoutget_args()
1096 if (!lgp->args.layout.pages) { in pnfs_alloc_init_layoutget_args()
1097 kfree(lgp); in pnfs_alloc_init_layoutget_args()
1100 lgp->args.layout.pglen = max_pages * PAGE_SIZE; in pnfs_alloc_init_layoutget_args()
1101 lgp->res.layoutp = &lgp->args.layout; in pnfs_alloc_init_layoutget_args()
1104 lgp->res.status = -NFS4ERR_DELAY; in pnfs_alloc_init_layoutget_args()
1106 lgp->args.minlength = PAGE_SIZE; in pnfs_alloc_init_layoutget_args()
[all …]
Dpnfs.h245 extern struct pnfs_layout_segment* nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout);
265 struct pnfs_layout_segment *pnfs_layout_process(struct nfs4_layoutget *lgp);
266 void pnfs_layoutget_free(struct nfs4_layoutget *lgp);
420 void pnfs_parse_lgopen(struct inode *ino, struct nfs4_layoutget *lgp,
422 void nfs4_lgopen_release(struct nfs4_layoutget *lgp);
896 struct nfs4_layoutget *lgp, in pnfs_parse_lgopen() argument
901 static inline void nfs4_lgopen_release(struct nfs4_layoutget *lgp) in nfs4_lgopen_release() argument
Dnfs4proc.c1437 nfs4_lgopen_release(p->lgp); in nfs4_opendata_free()
3067 pnfs_parse_lgopen(state->inode, opendata->lgp, ctx); in _nfs4_open_and_get_state()
9344 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_prepare() local
9345 struct nfs_server *server = NFS_SERVER(lgp->args.inode); in nfs4_layoutget_prepare()
9348 nfs4_setup_sequence(server->nfs_client, &lgp->args.seq_args, in nfs4_layoutget_prepare()
9349 &lgp->res.seq_res, task); in nfs4_layoutget_prepare()
9355 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_done() local
9358 nfs41_sequence_process(task, &lgp->res.seq_res); in nfs4_layoutget_done()
9364 struct nfs4_layoutget *lgp, struct nfs4_exception *exception) in nfs4_layoutget_handle_exception() argument
9366 struct inode *inode = lgp->args.inode; in nfs4_layoutget_handle_exception()
[all …]
Dnfs4_fs.h243 struct nfs4_layoutget *lgp; member
/kernel/linux/linux-5.10/fs/nfsd/
Dpnfs.h33 struct nfsd4_layoutget *lgp);
35 struct nfsd4_layoutget *lgp);
57 __be32 nfsd4_insert_layout(struct nfsd4_layoutget *lgp,
Dflexfilelayoutxdr.c20 struct nfsd4_layoutget *lgp) in nfsd4_ff_encode_layoutget() argument
22 struct pnfs_ff_layout *fl = lgp->lg_content; in nfsd4_ff_encode_layoutget()
Dflexfilelayoutxdr.h48 struct nfsd4_layoutget *lgp);
Dblocklayoutxdr.h56 struct nfsd4_layoutget *lgp);
Dblocklayoutxdr.c18 struct nfsd4_layoutget *lgp) in nfsd4_block_encode_layoutget() argument
20 struct pnfs_block_extent *b = lgp->lg_content; in nfsd4_block_encode_layoutget()
Dnfs4proc.c1905 struct nfsd4_layoutget *lgp = &u->layoutget; in nfsd4_layoutget() local
1912 switch (lgp->lg_seg.iomode) { in nfsd4_layoutget()
1921 __func__, lgp->lg_seg.iomode); in nfsd4_layoutget()
1931 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1947 if (lgp->lg_seg.length < lgp->lg_minlength || in nfsd4_layoutget()
1948 (lgp->lg_minlength != NFS4_MAX_UINT64 && in nfsd4_layoutget()
1949 lgp->lg_minlength > NFS4_MAX_UINT64 - lgp->lg_seg.offset) || in nfsd4_layoutget()
1950 (lgp->lg_seg.length != NFS4_MAX_UINT64 && in nfsd4_layoutget()
1951 lgp->lg_seg.length > NFS4_MAX_UINT64 - lgp->lg_seg.offset)) in nfsd4_layoutget()
1953 if (lgp->lg_seg.length == 0) in nfsd4_layoutget()
[all …]
Dnfs4layouts.c402 nfsd4_insert_layout(struct nfsd4_layoutget *lgp, struct nfs4_layout_stateid *ls) in nfsd4_insert_layout() argument
404 struct nfsd4_layout_seg *seg = &lgp->lg_seg; in nfsd4_insert_layout()
441 nfs4_inc_and_copy_stateid(&lgp->lg_sid, &ls->ls_stid); in nfsd4_insert_layout()
Dnfs4xdr.c1621 struct nfsd4_layoutget *lgp) in nfsd4_decode_layoutget() argument
1626 lgp->lg_signal = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1627 lgp->lg_layout_type = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1628 lgp->lg_seg.iomode = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1629 p = xdr_decode_hyper(p, &lgp->lg_seg.offset); in nfsd4_decode_layoutget()
1630 p = xdr_decode_hyper(p, &lgp->lg_seg.length); in nfsd4_decode_layoutget()
1631 p = xdr_decode_hyper(p, &lgp->lg_minlength); in nfsd4_decode_layoutget()
1633 status = nfsd4_decode_stateid(argp, &lgp->lg_sid); in nfsd4_decode_layoutget()
1638 lgp->lg_maxcount = be32_to_cpup(p++); in nfsd4_decode_layoutget()
4442 struct nfsd4_layoutget *lgp) in nfsd4_encode_layoutget() argument
[all …]