Lines Matching defs:bytes
833 /* Returns the number of bytes copied. May be 0. Cannot be an errno. */
881 size_t bytes; /* Bytes to write to folio */
884 bytes = iov_iter_count(i);
887 bytes = min(chunk - offset, bytes);
893 if (bytes > length)
894 bytes = length;
906 if (unlikely(fault_in_iov_iter_readable(i, bytes) == bytes)) {
911 status = iomap_write_begin(iter, pos, bytes, &folio);
918 if (bytes > folio_size(folio) - offset)
919 bytes = folio_size(folio) - offset;
924 copied = copy_folio_from_iter_atomic(folio, offset, bytes, i);
925 status = iomap_write_end(iter, pos, bytes, copied, folio);
941 bytes = copied;
1283 size_t bytes = min_t(u64, SIZE_MAX, length);
1285 status = iomap_write_begin(iter, pos, bytes, &folio);
1292 if (bytes > folio_size(folio) - offset)
1293 bytes = folio_size(folio) - offset;
1295 bytes = iomap_write_end(iter, pos, bytes, bytes, folio);
1296 if (WARN_ON_ONCE(bytes == 0))
1301 pos += bytes;
1302 written += bytes;
1303 length -= bytes;
1344 size_t bytes = min_t(u64, SIZE_MAX, length);
1346 status = iomap_write_begin(iter, pos, bytes, &folio);
1353 if (bytes > folio_size(folio) - offset)
1354 bytes = folio_size(folio) - offset;
1356 folio_zero_range(folio, offset, bytes);
1359 bytes = iomap_write_end(iter, pos, bytes, bytes, folio);
1360 if (WARN_ON_ONCE(bytes == 0))
1363 pos += bytes;
1364 length -= bytes;
1365 written += bytes;