Lines Matching refs:maxcount
1993 u32 maxcount;
1999 maxcount = svc_max_payload(argp->rqstp);
2000 maxcount = min_t(u32, XATTR_SIZE_MAX, maxcount);
2002 getxattr->getxa_len = maxcount;
2012 u32 flags, maxcount, size;
2027 maxcount = svc_max_payload(argp->rqstp);
2028 maxcount = min_t(u32, XATTR_SIZE_MAX, maxcount);
2032 if (size > maxcount)
2053 u32 maxcount;
2066 maxcount = be32_to_cpup(p++);
2067 if (maxcount < 8)
2071 maxcount = min(maxcount, svc_max_payload(argp->rqstp));
2072 listxattrs->lsxa_maxcount = maxcount;
3769 struct file *file, unsigned long maxcount)
3783 file, read->rd_offset, &maxcount, &eof);
3784 read->rd_length = maxcount;
3796 *(p++) = htonl(maxcount);
3798 buf->page_len = maxcount;
3799 buf->len += maxcount;
3800 xdr->page_ptr += (buf->page_base + maxcount + PAGE_SIZE - 1)
3807 if (maxcount&3) {
3808 int pad = 4 - (maxcount&3);
3812 buf->tail[0].iov_base += maxcount&3;
3827 struct file *file, unsigned long maxcount)
3836 read->rd_vlen = xdr_reserve_space_vec(xdr, resp->rqstp->rq_vec, maxcount);
3841 resp->rqstp->rq_vec, read->rd_vlen, &maxcount,
3843 read->rd_length = maxcount;
3846 if (svc_encode_read_payload(resp->rqstp, starting_len + 8, maxcount))
3848 xdr_truncate_encode(xdr, starting_len + 8 + xdr_align_size(maxcount));
3852 tmp = htonl(maxcount);
3856 pad = (maxcount&3) ? 4 - (maxcount&3) : 0;
3857 write_bytes_to_xdr_buf(xdr->buf, starting_len + 8 + maxcount,
3867 unsigned long maxcount;
3889 maxcount = svc_max_payload(resp->rqstp);
3890 maxcount = min_t(unsigned long, maxcount,
3892 maxcount = min_t(unsigned long, maxcount, read->rd_length);
3896 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount);
3898 nfserr = nfsd4_encode_readv(resp, read, file, maxcount);
3909 int maxcount;
3919 maxcount = PAGE_SIZE;
3921 p = xdr_reserve_space(xdr, maxcount);
3931 (char *)p, &maxcount);
3939 wire_count = htonl(maxcount);
3941 xdr_truncate_encode(xdr, length_offset + 4 + ALIGN(maxcount, 4));
3942 if (maxcount & 3)
3943 write_bytes_to_xdr_buf(xdr->buf, length_offset + 4 + maxcount,
3944 &zero, 4 - (maxcount&3));
3951 int maxcount;
3979 maxcount = svc_max_payload(resp->rqstp);
3980 maxcount = min_t(u32, readdir->rd_maxcount, maxcount);
3986 if (maxcount < 16) {
3990 maxcount = min_t(int, maxcount-16, bytes_left);
3997 readdir->rd_maxcount = maxcount;
4009 if (maxcount - 16 < bytes_left)
4438 dprintk("%s: maxcount too small\n", __func__);
4617 unsigned long *maxcount, u32 *eof,
4630 *maxcount = min_t(unsigned long, *maxcount, hole_pos - read->rd_offset);
4631 *maxcount = min_t(unsigned long, *maxcount, (xdr->buf->buflen - xdr->buf->len));
4638 read->rd_vlen = xdr_reserve_space_vec(xdr, resp->rqstp->rq_vec, *maxcount);
4643 resp->rqstp->rq_vec, read->rd_vlen, maxcount, eof);
4646 xdr_truncate_encode(xdr, starting_len + 16 + xdr_align_size(*maxcount));
4652 tmp = htonl(*maxcount);
4656 write_bytes_to_xdr_buf(xdr->buf, starting_len + 16 + *maxcount, &tmp,
4657 xdr_pad_size(*maxcount));
4664 unsigned long *maxcount, u32 *eof)
4675 return nfsd4_encode_read_plus_data(resp, read, maxcount, eof, &f_size);
4688 *maxcount = min_t(unsigned long, count, *maxcount);
4696 unsigned long maxcount, count;
4717 maxcount = svc_max_payload(resp->rqstp);
4718 maxcount = min_t(unsigned long, maxcount,
4720 maxcount = min_t(unsigned long, maxcount, read->rd_length);
4721 count = maxcount;
4731 maxcount = count;
4733 nfserr = nfsd4_encode_read_plus_data(resp, read, &maxcount, &eof,
4736 nfserr = nfsd4_encode_read_plus_hole(resp, read, &maxcount, &eof);
4739 count -= maxcount;
4740 read->rd_offset += maxcount;