Home
last modified time | relevance | path

Searched refs:lcp (Results 1 – 4 of 4) sorted by relevance

/fs/nfsd/
Dblocklayout.c120 nfsd4_block_commit_blocks(struct inode *inode, struct nfsd4_layoutcommit *lcp, in nfsd4_block_commit_blocks() argument
123 loff_t new_size = lcp->lc_last_wr + 1; in nfsd4_block_commit_blocks()
127 if (lcp->lc_mtime.tv_nsec == UTIME_NOW || in nfsd4_block_commit_blocks()
128 timespec64_compare(&lcp->lc_mtime, &inode->i_mtime) < 0) in nfsd4_block_commit_blocks()
129 lcp->lc_mtime = current_time(inode); in nfsd4_block_commit_blocks()
131 iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; in nfsd4_block_commit_blocks()
180 struct nfsd4_layoutcommit *lcp) in nfsd4_block_proc_layoutcommit() argument
185 nr_iomaps = nfsd4_block_decode_layoutupdate(lcp->lc_up_layout, in nfsd4_block_proc_layoutcommit()
186 lcp->lc_up_len, &iomaps, i_blocksize(inode)); in nfsd4_block_proc_layoutcommit()
190 return nfsd4_block_commit_blocks(inode, lcp, iomaps, nr_iomaps); in nfsd4_block_proc_layoutcommit()
[all …]
Dnfs4xdr.c1630 struct nfsd4_layoutcommit *lcp) in nfsd4_decode_layoutcommit() argument
1636 p = xdr_decode_hyper(p, &lcp->lc_seg.offset); in nfsd4_decode_layoutcommit()
1637 p = xdr_decode_hyper(p, &lcp->lc_seg.length); in nfsd4_decode_layoutcommit()
1638 lcp->lc_reclaim = be32_to_cpup(p++); in nfsd4_decode_layoutcommit()
1640 status = nfsd4_decode_stateid(argp, &lcp->lc_sid); in nfsd4_decode_layoutcommit()
1645 lcp->lc_newoffset = be32_to_cpup(p++); in nfsd4_decode_layoutcommit()
1646 if (lcp->lc_newoffset) { in nfsd4_decode_layoutcommit()
1648 p = xdr_decode_hyper(p, &lcp->lc_last_wr); in nfsd4_decode_layoutcommit()
1650 lcp->lc_last_wr = 0; in nfsd4_decode_layoutcommit()
1654 status = nfsd4_decode_time(argp, &lcp->lc_mtime); in nfsd4_decode_layoutcommit()
[all …]
Dnfs4proc.c1690 struct nfsd4_layoutcommit *lcp = &u->layoutcommit; in nfsd4_layoutcommit() local
1691 const struct nfsd4_layout_seg *seg = &lcp->lc_seg; in nfsd4_layoutcommit()
1694 loff_t new_size = lcp->lc_last_wr + 1; in nfsd4_layoutcommit()
1704 ops = nfsd4_layout_verify(current_fh->fh_export, lcp->lc_layout_type); in nfsd4_layoutcommit()
1718 if (!lcp->lc_newoffset && new_size > i_size_read(inode)) { in nfsd4_layoutcommit()
1723 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, in nfsd4_layoutcommit()
1724 false, lcp->lc_layout_type, in nfsd4_layoutcommit()
1727 trace_nfsd_layout_commit_lookup_fail(&lcp->lc_sid); in nfsd4_layoutcommit()
1738 lcp->lc_size_chg = 1; in nfsd4_layoutcommit()
1739 lcp->lc_newsize = new_size; in nfsd4_layoutcommit()
[all …]
Dpnfs.h38 struct nfsd4_layoutcommit *lcp);