Lines Matching defs:write_bytes
385 static noinline int btrfs_copy_from_user(loff_t pos, size_t write_bytes,
394 while (write_bytes > 0) {
396 PAGE_SIZE - offset, write_bytes);
419 write_bytes -= copied;
464 size_t num_pages, loff_t pos, size_t write_bytes,
473 u64 end_pos = pos + write_bytes;
478 num_bytes = round_up(write_bytes + pos - start_pos,
1347 size_t write_bytes, bool force_uptodate)
1370 pos + write_bytes, false);
1407 size_t write_bytes,
1418 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1;
1471 size_t *write_bytes, bool nowait)
1486 lockend = round_up(pos + *write_bytes,
1515 *write_bytes = min_t(size_t, *write_bytes ,
1525 size_t *write_bytes)
1527 return check_can_nocow(inode, pos, write_bytes, true);
1531 * Check if we can do nocow write into the range [@pos, @pos + @write_bytes)
1534 * @write_bytes: The length to write, will be updated to the nocow writeable
1541 * >0 and update @write_bytes if we can do nocow write
1550 size_t *write_bytes)
1552 return check_can_nocow(inode, pos, write_bytes, false);
1590 size_t write_bytes = min(iov_iter_count(i),
1593 size_t num_pages = DIV_ROUND_UP(write_bytes + offset,
1608 if (unlikely(iov_iter_fault_in_readable(i, write_bytes))) {
1615 reserve_bytes = round_up(write_bytes + sector_offset,
1621 write_bytes);
1624 &write_bytes) > 0) {
1632 * write_bytes, so scale down.
1634 num_pages = DIV_ROUND_UP(write_bytes + offset,
1636 reserve_bytes = round_up(write_bytes +
1651 write_bytes);
1665 pos, write_bytes,
1675 num_pages, pos, write_bytes, &lockstart,
1686 copied = btrfs_copy_from_user(pos, write_bytes, pages, i);
1697 if (copied < write_bytes)