Lines Matching defs:read
1259 struct nfsd4_read *read = &u->read;
1262 memset(read, 0, sizeof(*read));
1263 status = nfsd4_decode_stateid4(argp, &read->rd_stateid);
1266 if (xdr_stream_decode_u64(argp->xdr, &read->rd_offset) < 0)
1268 if (xdr_stream_decode_u32(argp->xdr, &read->rd_length) < 0)
2108 * read or write. However, the size of extended attributes is limited
4056 struct nfsd4_read *read,
4072 nfserr = nfsd_splice_read(read->rd_rqstp, read->rd_fhp,
4073 file, read->rd_offset, &maxcount,
4074 &read->rd_eof);
4075 read->rd_length = maxcount;
4078 svcxdr_encode_opaque_pages(read->rd_rqstp, xdr, buf->pages,
4080 status = svc_encode_result_payload(read->rd_rqstp,
4091 * splice read has been done, so the following stream
4112 struct nfsd4_read *read,
4124 nfserr = nfsd_iter_read(resp->rqstp, read->rd_fhp, file,
4125 read->rd_offset, &maxcount, base,
4126 &read->rd_eof);
4127 read->rd_length = maxcount;
4143 struct nfsd4_read *read = &u->read;
4153 file = read->rd_nf->nf_file;
4166 maxcount = min_t(unsigned long, read->rd_length,
4170 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount);
4172 nfserr = nfsd4_encode_readv(resp, read, file, maxcount);
4178 p = xdr_encode_bool(p, read->rd_eof);
4179 *p = cpu_to_be32(read->rd_length);
4900 struct nfsd4_read *read)
4903 struct file *file = read->rd_nf->nf_file;
4917 maxcount = min_t(unsigned long, read->rd_length,
4921 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount);
4923 nfserr = nfsd4_encode_readv(resp, read, file, maxcount);
4928 p = xdr_encode_hyper(p, read->rd_offset);
4929 *p = cpu_to_be32(read->rd_length);
4938 struct nfsd4_read *read = &u->read;
4939 struct file *file = read->rd_nf->nf_file;
4954 read->rd_eof = read->rd_offset >= i_size_read(file_inode(file));
4955 if (read->rd_eof)
4958 nfserr = nfsd4_encode_read_plus_data(resp, read);
4967 p = xdr_encode_bool(p, read->rd_eof);