Lines Matching defs:bytes
94 ssize_t bytes;
98 bytes = iov_iter_get_pages2(iter, pages, maxsize - size,
100 if (bytes < 0)
101 return size ?: bytes;
103 size += bytes;
105 for ( ; bytes; idx++, bvec_idx++) {
106 int len = min_t(int, bytes, PAGE_SIZE - start);
109 bytes -= len;
122 * Attempt to get up to @maxsize bytes worth of pages from @iter.
123 * Return the number of bytes in the created bio_vec array, or an error.
130 ssize_t bytes;
145 bytes = __iter_get_bvecs(iter, maxsize, bv);
146 if (bytes < 0) {
151 return bytes;
156 return bytes;
1252 dout("ceph_aio_complete_req %p rc %d bytes %u\n", inode, rc, len);
2690 * - max bytes quotas is exceeded
2778 size_t bytes = 0;
2826 if (!bytes)
2827 bytes = ret;
2831 bytes += object_size;
2839 return bytes;
2853 ssize_t ret = -EIO, bytes;
2961 * 'src_objlen' contains the bytes left until the end of the object,
2965 dout("Initial partial copy of %u bytes\n", src_objlen);
2991 bytes = ceph_do_objects_copy(src_ci, &src_off, dst_ci, &dst_off,
2993 if (bytes <= 0) {
2995 ret = bytes;
2998 dout("Copied %zu bytes out of %zu\n", bytes, len);
2999 len -= bytes;
3000 ret += bytes;
3022 * Do the final manual copy if we still have some bytes left, unless
3026 dout("Final partial copy of %zu bytes\n", len);
3027 bytes = do_splice_direct(src_file, &src_off, dst_file,
3029 if (bytes > 0)
3030 ret += bytes;
3032 dout("Failed partial copy (%zd)\n", bytes);