Lines Matching refs:max_bytes
153 uint64_t max_bytes, in copy_bytes_full() argument
192 if (foffset == 0 && toffset == 0 && max_bytes == UINT64_MAX) in copy_bytes_full()
195 …r = btrfs_clone_range(fdf, foffset, fdt, toffset, max_bytes == UINT64_MAX ? 0 : max_bytes); /* par… in copy_bytes_full()
200 if (max_bytes == UINT64_MAX) { in copy_bytes_full()
218 t = lseek(fdf, foffset + max_bytes, SEEK_SET); in copy_bytes_full()
222 t = lseek(fdt, toffset + max_bytes, SEEK_SET); in copy_bytes_full()
236 if (max_bytes <= 0) in copy_bytes_full()
243 if (max_bytes != UINT64_MAX && m > max_bytes) in copy_bytes_full()
244 m = max_bytes; in copy_bytes_full()
447 if (max_bytes != UINT64_MAX) { in copy_bytes_full()
448 assert(max_bytes >= (uint64_t) n); in copy_bytes_full()
449 max_bytes -= n; in copy_bytes_full()
455 m = MAX(MIN(COPY_BUFFER_SIZE, max_bytes), m - n); in copy_bytes_full()