Searched refs:trim (Results 1 – 1 of 1) sorted by relevance
1079 unsigned int trim = len; in xdr_buf_trim() local1082 cur = min_t(size_t, buf->tail[0].iov_len, trim); in xdr_buf_trim()1084 trim -= cur; in xdr_buf_trim()1085 if (!trim) in xdr_buf_trim()1090 cur = min_t(unsigned int, buf->page_len, trim); in xdr_buf_trim()1092 trim -= cur; in xdr_buf_trim()1093 if (!trim) in xdr_buf_trim()1098 cur = min_t(size_t, buf->head[0].iov_len, trim); in xdr_buf_trim()1100 trim -= cur; in xdr_buf_trim()1103 buf->len -= (len - trim); in xdr_buf_trim()