Lines Matching refs:max_size
110 size_t max_size, size_t max_segs) in netfs_limit_bvec() argument
132 len = min3(n, bvecs[ix].bv_len - skip, max_size); in netfs_limit_bvec()
136 if (span >= max_size || nsegs >= max_segs) in netfs_limit_bvec()
142 return min(span, max_size); in netfs_limit_bvec()
152 size_t max_size, size_t max_segs) in netfs_limit_xarray() argument
166 max_size = min(max_size, n - start_offset); in netfs_limit_xarray()
180 len = min(max_size, flen - offset); in netfs_limit_xarray()
183 if (span >= max_size || nsegs >= max_segs) in netfs_limit_xarray()
188 return min(span, max_size); in netfs_limit_xarray()
197 size_t max_size, size_t max_segs) in netfs_limit_folioq() argument
208 max_size = umin(max_size, n - start_offset); in netfs_limit_folioq()
226 if (span >= max_size || nsegs >= max_segs) in netfs_limit_folioq()
236 return umin(span, max_size); in netfs_limit_folioq()
240 size_t max_size, size_t max_segs) in netfs_limit_iter() argument
243 return netfs_limit_folioq(iter, start_offset, max_size, max_segs); in netfs_limit_iter()
245 return netfs_limit_bvec(iter, start_offset, max_size, max_segs); in netfs_limit_iter()
247 return netfs_limit_xarray(iter, start_offset, max_size, max_segs); in netfs_limit_iter()