Lines Matching refs:write_bytes
44 static noinline int btrfs_copy_from_user(loff_t pos, size_t write_bytes, in btrfs_copy_from_user() argument
53 while (write_bytes > 0) { in btrfs_copy_from_user()
55 PAGE_SIZE - offset, write_bytes); in btrfs_copy_from_user()
83 write_bytes -= copied; in btrfs_copy_from_user()
128 size_t num_pages, loff_t pos, size_t write_bytes, in btrfs_dirty_pages() argument
137 u64 end_pos = pos + write_bytes; in btrfs_dirty_pages()
141 if (write_bytes == 0) in btrfs_dirty_pages()
148 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages()
907 size_t write_bytes, bool force_uptodate, in prepare_pages() argument
941 pos + write_bytes, false); in prepare_pages()
978 size_t write_bytes, in lock_and_cleanup_extent_if_need() argument
989 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
1062 size_t *write_bytes, bool nowait) in btrfs_check_nocow_lock() argument
1078 lockend = round_up(pos + *write_bytes, in btrfs_check_nocow_lock()
1097 *write_bytes = min_t(size_t, *write_bytes , in btrfs_check_nocow_lock()
1229 size_t write_bytes = min(iov_iter_count(i), in btrfs_buffered_write() local
1244 if (unlikely(fault_in_iov_iter_readable(i, write_bytes))) { in btrfs_buffered_write()
1255 write_bytes, nowait); in btrfs_buffered_write()
1270 &write_bytes, nowait); in btrfs_buffered_write()
1280 num_pages = DIV_ROUND_UP(write_bytes + offset, PAGE_SIZE); in btrfs_buffered_write()
1282 reserve_bytes = round_up(write_bytes + sector_offset, in btrfs_buffered_write()
1292 write_bytes); in btrfs_buffered_write()
1315 pos, write_bytes, force_page_uptodate, false); in btrfs_buffered_write()
1324 num_pages, pos, write_bytes, &lockstart, in btrfs_buffered_write()
1336 copied = btrfs_copy_from_user(pos, write_bytes, pages, i); in btrfs_buffered_write()
1347 if (copied < write_bytes) in btrfs_buffered_write()