Home
last modified time | relevance | path

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

/fs/nfs/
Dpnfs.c1093 struct nfs4_layoutget *lgp; in pnfs_alloc_init_layoutget_args() local
1097 lgp = kzalloc(sizeof(*lgp), gfp_flags); in pnfs_alloc_init_layoutget_args()
1098 if (lgp == NULL) in pnfs_alloc_init_layoutget_args()
1107 lgp->args.layout.pages = nfs4_alloc_pages(max_pages, gfp_flags); in pnfs_alloc_init_layoutget_args()
1108 if (!lgp->args.layout.pages) { in pnfs_alloc_init_layoutget_args()
1109 kfree(lgp); in pnfs_alloc_init_layoutget_args()
1112 lgp->args.layout.pglen = max_pages * PAGE_SIZE; in pnfs_alloc_init_layoutget_args()
1113 lgp->res.layoutp = &lgp->args.layout; in pnfs_alloc_init_layoutget_args()
1116 lgp->res.status = -NFS4ERR_DELAY; in pnfs_alloc_init_layoutget_args()
1118 lgp->args.minlength = PAGE_SIZE; in pnfs_alloc_init_layoutget_args()
[all …]
Dpnfs.h248 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);
899 struct nfs4_layoutget *lgp, in pnfs_parse_lgopen() argument
904 static inline void nfs4_lgopen_release(struct nfs4_layoutget *lgp) in nfs4_lgopen_release() argument
Dnfs4proc.c1451 nfs4_lgopen_release(p->lgp); in nfs4_opendata_free()
3085 pnfs_parse_lgopen(state->inode, opendata->lgp, ctx); in _nfs4_open_and_get_state()
3100 if (opendata->lgp) { in _nfs4_open_and_get_state()
3101 nfs4_lgopen_release(opendata->lgp); in _nfs4_open_and_get_state()
3102 opendata->lgp = NULL; in _nfs4_open_and_get_state()
9385 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_prepare() local
9386 struct nfs_server *server = NFS_SERVER(lgp->args.inode); in nfs4_layoutget_prepare()
9389 nfs4_setup_sequence(server->nfs_client, &lgp->args.seq_args, in nfs4_layoutget_prepare()
9390 &lgp->res.seq_res, task); in nfs4_layoutget_prepare()
9396 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_done() local
[all …]
Dnfs4_fs.h244 struct nfs4_layoutget *lgp; member
/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()
Dnfs4proc.c1899 struct nfsd4_layoutget *lgp = &u->layoutget; in nfsd4_layoutget() local
1906 switch (lgp->lg_seg.iomode) { in nfsd4_layoutget()
1915 __func__, lgp->lg_seg.iomode); in nfsd4_layoutget()
1925 ops = nfsd4_layout_verify(current_fh->fh_export, lgp->lg_layout_type); in nfsd4_layoutget()
1941 if (lgp->lg_seg.length < lgp->lg_minlength || in nfsd4_layoutget()
1942 (lgp->lg_minlength != NFS4_MAX_UINT64 && in nfsd4_layoutget()
1943 lgp->lg_minlength > NFS4_MAX_UINT64 - lgp->lg_seg.offset) || in nfsd4_layoutget()
1944 (lgp->lg_seg.length != NFS4_MAX_UINT64 && in nfsd4_layoutget()
1945 lgp->lg_seg.length > NFS4_MAX_UINT64 - lgp->lg_seg.offset)) in nfsd4_layoutget()
1947 if (lgp->lg_seg.length == 0) in nfsd4_layoutget()
[all …]
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()
Dflexfilelayoutxdr.h48 struct nfsd4_layoutget *lgp);
Dblocklayoutxdr.h56 struct nfsd4_layoutget *lgp);
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()
4450 struct nfsd4_layoutget *lgp) in nfsd4_encode_layoutget() argument
[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()