Searched refs:lcp (Results 1 – 4 of 4) sorted by relevance
/fs/nfsd/ |
D | blocklayout.c | 117 nfsd4_block_commit_blocks(struct inode *inode, struct nfsd4_layoutcommit *lcp, in nfsd4_block_commit_blocks() argument 120 loff_t new_size = lcp->lc_last_wr + 1; in nfsd4_block_commit_blocks() 124 if (lcp->lc_mtime.tv_nsec == UTIME_NOW || in nfsd4_block_commit_blocks() 125 timespec64_compare(&lcp->lc_mtime, &inode->i_mtime) < 0) in nfsd4_block_commit_blocks() 126 lcp->lc_mtime = current_time(inode); in nfsd4_block_commit_blocks() 128 iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; in nfsd4_block_commit_blocks() 177 struct nfsd4_layoutcommit *lcp) in nfsd4_block_proc_layoutcommit() argument 182 nr_iomaps = nfsd4_block_decode_layoutupdate(lcp->lc_up_layout, in nfsd4_block_proc_layoutcommit() 183 lcp->lc_up_len, &iomaps, i_blocksize(inode)); in nfsd4_block_proc_layoutcommit() 187 return nfsd4_block_commit_blocks(inode, lcp, iomaps, nr_iomaps); in nfsd4_block_proc_layoutcommit() [all …]
|
D | nfs4xdr.c | 584 struct nfsd4_layoutcommit *lcp) in nfsd4_decode_layoutupdate4() argument 586 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_layout_type) < 0) in nfsd4_decode_layoutupdate4() 588 if (lcp->lc_layout_type < LAYOUT_NFSV4_1_FILES) in nfsd4_decode_layoutupdate4() 590 if (lcp->lc_layout_type >= LAYOUT_TYPE_MAX) in nfsd4_decode_layoutupdate4() 593 if (xdr_stream_decode_u32(argp->xdr, &lcp->lc_up_len) < 0) in nfsd4_decode_layoutupdate4() 595 if (lcp->lc_up_len > 0) { in nfsd4_decode_layoutupdate4() 596 lcp->lc_up_layout = xdr_inline_decode(argp->xdr, lcp->lc_up_len); in nfsd4_decode_layoutupdate4() 597 if (!lcp->lc_up_layout) in nfsd4_decode_layoutupdate4() 1762 struct nfsd4_layoutcommit *lcp = &u->layoutcommit; in nfsd4_decode_layoutcommit() local 1765 memset(lcp, 0, sizeof(*lcp)); in nfsd4_decode_layoutcommit() [all …]
|
D | pnfs.h | 38 struct nfsd4_layoutcommit *lcp);
|
D | nfs4proc.c | 2302 struct nfsd4_layoutcommit *lcp = &u->layoutcommit; in nfsd4_layoutcommit() local 2303 const struct nfsd4_layout_seg *seg = &lcp->lc_seg; in nfsd4_layoutcommit() 2306 loff_t new_size = lcp->lc_last_wr + 1; in nfsd4_layoutcommit() 2317 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit() 2331 if (!lcp->lc_newoffset && new_size > i_size_read(inode)) { in nfsd4_layoutcommit() 2336 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, in nfsd4_layoutcommit() 2337 false, lcp->lc_layout_type, in nfsd4_layoutcommit() 2340 trace_nfsd_layout_commit_lookup_fail(&lcp->lc_sid); in nfsd4_layoutcommit() 2351 lcp->lc_size_chg = 1; in nfsd4_layoutcommit() 2352 lcp->lc_newsize = new_size; in nfsd4_layoutcommit() [all …]
|