/fs/iomap/ |
D | direct-io.c | 213 size_t copied = 0; in iomap_dio_bio_actor() local 263 iov_iter_revert(dio->submit.iter, copied); in iomap_dio_bio_actor() 307 copied += n; in iomap_dio_bio_actor() 327 if (copied) in iomap_dio_bio_actor() 328 return copied; in iomap_dio_bio_actor() 345 size_t copied; in iomap_dio_inline_actor() local 354 copied = copy_from_iter(iomap->inline_data + pos, length, iter); in iomap_dio_inline_actor() 355 if (copied) { in iomap_dio_inline_actor() 356 if (pos + copied > size) in iomap_dio_inline_actor() 357 i_size_write(inode, pos + copied); in iomap_dio_inline_actor() [all …]
|
D | buffered-io.c | 659 unsigned copied, struct page *page, struct iomap *iomap) in __iomap_write_end() argument 674 if (unlikely(copied < len && !PageUptodate(page))) in __iomap_write_end() 678 return copied; in __iomap_write_end() 683 struct iomap *iomap, loff_t pos, unsigned copied) in iomap_write_end_inline() argument 688 BUG_ON(pos + copied > PAGE_SIZE - offset_in_page(iomap->inline_data)); in iomap_write_end_inline() 691 memcpy(iomap->inline_data + pos, addr + pos, copied); in iomap_write_end_inline() 695 return copied; in iomap_write_end_inline() 700 unsigned copied, struct page *page, struct iomap *iomap) in iomap_write_end() argument 707 ret = iomap_write_end_inline(inode, page, iomap, pos, copied); in iomap_write_end() 709 ret = block_write_end(NULL, inode->i_mapping, pos, len, copied, in iomap_write_end() [all …]
|
/fs/squashfs/ |
D | symlink.c | 42 int bytes, copied; in squashfs_symlink_readpage() local 70 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage() 81 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage() 83 if (copied == length - bytes) in squashfs_symlink_readpage()
|
D | file.c | 366 int copied; in squashfs_fill_page() local 370 copied = squashfs_copy_data(pageaddr, buffer, offset, avail); in squashfs_fill_page() 371 memset(pageaddr + copied, 0, PAGE_SIZE - copied); in squashfs_fill_page() 375 if (copied == avail) in squashfs_fill_page()
|
/fs/ecryptfs/ |
D | mmap.c | 464 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end() argument 469 unsigned to = from + copied; in ecryptfs_write_end() 481 rc = copied; in ecryptfs_write_end() 488 if (copied < PAGE_SIZE) { in ecryptfs_write_end() 507 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end() 508 i_size_write(ecryptfs_inode, pos + copied); in ecryptfs_write_end() 518 rc = copied; in ecryptfs_write_end()
|
/fs/9p/ |
D | vfs_addr.c | 292 loff_t pos, unsigned len, unsigned copied, in v9fs_write_end() argument 295 loff_t last_pos = pos + copied; in v9fs_write_end() 301 if (unlikely(copied < len)) { in v9fs_write_end() 302 copied = 0; in v9fs_write_end() 321 return copied; in v9fs_write_end()
|
/fs/gfs2/ |
D | dir.c | 163 int copied = 0; in gfs2_dir_write_data() local 186 while (copied < size) { in gfs2_dir_write_data() 190 amount = size - copied; in gfs2_dir_write_data() 218 copied += amount; in gfs2_dir_write_data() 231 if (ip->i_inode.i_size < offset + copied) in gfs2_dir_write_data() 232 i_size_write(&ip->i_inode, offset + copied); in gfs2_dir_write_data() 239 return copied; in gfs2_dir_write_data() 241 if (copied) in gfs2_dir_write_data() 277 int copied = 0; in gfs2_dir_read_data() local 289 while (copied < size) { in gfs2_dir_read_data() [all …]
|
D | aops.c | 557 unsigned copied = 0; in gfs2_internal_read() local 563 amt = size - copied; in gfs2_internal_read() 570 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read() 573 copied += amt; in gfs2_internal_read() 576 } while(copied < size); in gfs2_internal_read()
|
/fs/ntfs/ |
D | file.c | 1691 unsigned len, copied; in ntfs_copy_from_user_iter() local 1697 copied = iov_iter_copy_from_user_atomic(*pages, &data, ofs, in ntfs_copy_from_user_iter() 1699 total += copied; in ntfs_copy_from_user_iter() 1700 bytes -= copied; in ntfs_copy_from_user_iter() 1703 iov_iter_advance(&data, copied); in ntfs_copy_from_user_iter() 1704 if (copied < len) in ntfs_copy_from_user_iter() 1712 len = PAGE_SIZE - copied; in ntfs_copy_from_user_iter() 1716 zero_user(*pages, copied, len); in ntfs_copy_from_user_iter() 1718 copied = 0; in ntfs_copy_from_user_iter() 1782 size_t copied; in ntfs_perform_write() local [all …]
|
/fs/erofs/ |
D | decompressor.c | 117 bool copied, support_0padding; in z_erofs_lz4_decompress() local 142 copied = false; in z_erofs_lz4_decompress() 156 copied = true; in z_erofs_lz4_decompress() 174 if (copied) in z_erofs_lz4_decompress()
|
/fs/hugetlbfs/ |
D | inode.c | 240 size_t copied = 0; in hugetlbfs_read_actor() local 255 copied += n; in hugetlbfs_read_actor() 257 return copied; in hugetlbfs_read_actor() 262 return copied; in hugetlbfs_read_actor() 284 size_t nr, copied; in hugetlbfs_read_iter() local 308 copied = iov_iter_zero(nr, to); in hugetlbfs_read_iter() 315 copied = hugetlbfs_read_actor(page, offset, to, nr); in hugetlbfs_read_iter() 318 offset += copied; in hugetlbfs_read_iter() 319 retval += copied; in hugetlbfs_read_iter() 320 if (copied != nr && iov_iter_count(to)) { in hugetlbfs_read_iter() [all …]
|
/fs/ |
D | seq_file.c | 156 size_t copied = 0; in seq_read() local 218 copied += n; in seq_read() 280 copied += n; in seq_read() 284 if (!copied) in seq_read() 285 copied = err; in seq_read() 287 *ppos += copied; in seq_read() 288 m->read_pos += copied; in seq_read() 292 return copied; in seq_read()
|
D | buffer.c | 2091 loff_t pos, unsigned len, unsigned copied, in block_write_end() argument 2099 if (unlikely(copied < len)) { in block_write_end() 2113 copied = 0; in block_write_end() 2115 page_zero_new_buffers(page, start+copied, start+len); in block_write_end() 2120 __block_commit_write(inode, page, start, start+copied); in block_write_end() 2122 return copied; in block_write_end() 2127 loff_t pos, unsigned len, unsigned copied, in generic_write_end() argument 2134 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in generic_write_end() 2143 if (pos + copied > inode->i_size) { in generic_write_end() 2144 i_size_write(inode, pos + copied); in generic_write_end() [all …]
|
D | splice.c | 373 size_t offset, base, copied = 0; in default_file_splice_read() local 416 copied = res; in default_file_splice_read() 426 iov_iter_advance(&to, copied); /* truncates and discards */ in default_file_splice_read() 1221 ssize_t copied; in iter_to_pipe() local 1225 copied = iov_iter_get_pages(from, pages, ~0UL, 16, &start); in iter_to_pipe() 1226 if (copied <= 0) { in iter_to_pipe() 1227 ret = copied; in iter_to_pipe() 1231 for (n = 0; copied; n++, start = 0) { in iter_to_pipe() 1232 int size = min_t(int, copied, PAGE_SIZE - start); in iter_to_pipe() 1247 copied -= size; in iter_to_pipe()
|
/fs/nfsd/ |
D | nfs4recover.c | 1699 int copied; in nfsd4_cltrack_legacy_topdir() local 1713 copied = snprintf(result, len, LEGACY_TOPDIR_ENV_PREFIX "%s", in nfsd4_cltrack_legacy_topdir() 1715 if (copied >= len) { in nfsd4_cltrack_legacy_topdir() 1727 int copied; in nfsd4_cltrack_legacy_recdir() local 1742 copied = snprintf(result, len, LEGACY_RECDIR_ENV_PREFIX "%s/", in nfsd4_cltrack_legacy_recdir() 1744 if (copied > (len - HEXDIR_LEN)) { in nfsd4_cltrack_legacy_recdir() 1750 copied = nfs4_make_rec_clidname(result + copied, name); in nfsd4_cltrack_legacy_recdir() 1751 if (copied) { in nfsd4_cltrack_legacy_recdir() 1762 int copied; in nfsd4_cltrack_client_has_session() local 1773 copied = snprintf(result, len, HAS_SESSION_ENV_PREFIX "%c", in nfsd4_cltrack_client_has_session() [all …]
|
/fs/btrfs/ |
D | file.c | 400 size_t copied = 0; in btrfs_copy_from_user() local 412 copied = iov_iter_copy_from_user_atomic(page, i, offset, count); in btrfs_copy_from_user() 426 if (!PageUptodate(page) && copied < count) in btrfs_copy_from_user() 427 copied = 0; in btrfs_copy_from_user() 429 iov_iter_advance(i, copied); in btrfs_copy_from_user() 430 write_bytes -= copied; in btrfs_copy_from_user() 431 total_copied += copied; in btrfs_copy_from_user() 434 if (unlikely(copied == 0)) in btrfs_copy_from_user() 437 if (copied < PAGE_SIZE - offset) { in btrfs_copy_from_user() 438 offset += copied; in btrfs_copy_from_user() [all …]
|
/fs/ocfs2/ |
D | aops.c | 1939 unsigned len, unsigned *copied, in ocfs2_write_end_inline() argument 1945 if (unlikely(*copied < len)) { in ocfs2_write_end_inline() 1947 *copied = 0; in ocfs2_write_end_inline() 1953 memcpy(di->id2.i_data.id_data + pos, kaddr + pos, *copied); in ocfs2_write_end_inline() 1958 (unsigned long long)pos, *copied, in ocfs2_write_end_inline() 1964 loff_t pos, unsigned len, unsigned copied, void *fsdata) in ocfs2_write_end_nolock() argument 1981 copied = ret; in ocfs2_write_end_nolock() 1988 ocfs2_write_end_inline(inode, pos, len, &copied, di, wc); in ocfs2_write_end_nolock() 1992 if (unlikely(copied < len) && wc->w_target_page) { in ocfs2_write_end_nolock() 1994 copied = 0; in ocfs2_write_end_nolock() [all …]
|
/fs/udf/ |
D | file.c | 115 loff_t pos, unsigned len, unsigned copied, in udf_adinicb_write_end() argument 119 loff_t last_pos = pos + copied; in udf_adinicb_write_end() 125 return copied; in udf_adinicb_write_end()
|
/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 555 int copied = 0; in xfs_iextents_copy() local 566 copied += sizeof(struct xfs_bmbt_rec); in xfs_iextents_copy() 570 ASSERT(copied > 0); in xfs_iextents_copy() 571 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy() 572 return copied; in xfs_iextents_copy()
|
/fs/nfs/ |
D | file.c | 355 loff_t pos, unsigned len, unsigned copied, in nfs_write_end() argument 371 unsigned end = offset + copied; in nfs_write_end() 385 status = nfs_updatepage(file, page, offset, copied); in nfs_write_end() 392 NFS_I(mapping->host)->write_io += copied; in nfs_write_end() 400 return copied; in nfs_write_end()
|
/fs/afs/ |
D | write.c | 182 loff_t pos, unsigned len, unsigned copied, in afs_write_end() argument 193 maybe_i_size = pos + copied; in afs_write_end() 205 if (copied < len) { in afs_write_end() 210 ret = afs_fill_page(vnode, key, pos + copied, in afs_write_end() 211 len - copied, page); in afs_write_end() 221 ret = copied; in afs_write_end()
|
/fs/jffs2/ |
D | file.c | 25 loff_t pos, unsigned len, unsigned copied, 236 loff_t pos, unsigned len, unsigned copied, in jffs2_write_end() argument 247 unsigned end = start + copied; in jffs2_write_end()
|
/fs/orangefs/ |
D | inode.c | 447 loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) in orangefs_write_end() argument 450 loff_t last_pos = pos + copied; in orangefs_write_end() 462 if (copied < len) { in orangefs_write_end() 463 zero_user(page, from + copied, len - copied); in orangefs_write_end() 468 zero_user_segment(page, from + copied, PAGE_SIZE); in orangefs_write_end() 478 return copied; in orangefs_write_end()
|
/fs/ext4/ |
D | inode.c | 1423 loff_t pos, unsigned len, unsigned copied, in ext4_write_end() argument 1435 trace_ext4_write_end(inode, pos, len, copied); in ext4_write_end() 1438 copied, page); in ext4_write_end() 1444 copied = ret; in ext4_write_end() 1446 copied = block_write_end(file, mapping, pos, in ext4_write_end() 1447 len, copied, page, fsdata); in ext4_write_end() 1456 i_size_changed = ext4_update_inode_size(inode, pos + copied); in ext4_write_end() 1493 return ret ? ret : copied; in ext4_write_end() 1532 loff_t pos, unsigned len, unsigned copied, in ext4_journalled_write_end() argument 1546 trace_ext4_journalled_write_end(inode, pos, len, copied); in ext4_journalled_write_end() [all …]
|
D | inline.c | 744 unsigned copied, struct page *page) in ext4_write_inline_data_end() argument 750 if (unlikely(copied < len)) { in ext4_write_inline_data_end() 752 copied = 0; in ext4_write_inline_data_end() 760 copied = 0; in ext4_write_inline_data_end() 778 return copied; in ext4_write_inline_data_end() 960 unsigned len, unsigned copied, in ext4_da_write_inline_data_end() argument 965 ret = ext4_write_inline_data_end(inode, pos, len, copied, page); in ext4_da_write_inline_data_end() 971 copied = ret; in ext4_da_write_inline_data_end() 980 if (pos+copied > inode->i_size) in ext4_da_write_inline_data_end() 981 i_size_write(inode, pos+copied); in ext4_da_write_inline_data_end() [all …]
|