/fs/ |
D | kernel_read_file.c | 40 size_t copied; in kernel_read_file() local 87 copied = 0; in kernel_read_file() 88 while (copied < buf_size) { in kernel_read_file() 90 size_t wanted = min_t(size_t, buf_size - copied, in kernel_read_file() 93 bytes = kernel_read(file, *buf + copied, wanted, &pos); in kernel_read_file() 101 copied += bytes; in kernel_read_file() 123 return ret == 0 ? copied : ret; in kernel_read_file()
|
D | seq_file.c | 174 size_t copied = 0; in seq_read_iter() local 219 copied += n; in seq_read_iter() 282 copied += n; in seq_read_iter() 286 if (unlikely(!copied)) { in seq_read_iter() 287 copied = m->count ? -EFAULT : err; in seq_read_iter() 289 iocb->ki_pos += copied; in seq_read_iter() 290 m->read_pos += copied; in seq_read_iter() 293 return copied; in seq_read_iter()
|
D | buffer.c | 2186 loff_t pos, unsigned len, unsigned copied, in block_write_end() argument 2194 if (unlikely(copied < len)) { in block_write_end() 2208 copied = 0; in block_write_end() 2210 page_zero_new_buffers(page, start+copied, start+len); in block_write_end() 2215 __block_commit_write(inode, page, start, start+copied); in block_write_end() 2217 return copied; in block_write_end() 2222 loff_t pos, unsigned len, unsigned copied, in generic_write_end() argument 2229 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in generic_write_end() 2238 if (pos + copied > inode->i_size) { in generic_write_end() 2239 i_size_write(inode, pos + copied); in generic_write_end() [all …]
|
/fs/iomap/ |
D | direct-io.c | 252 size_t copied = 0; in iomap_dio_bio_iter() local 311 iov_iter_revert(dio->submit.iter, copied); in iomap_dio_bio_iter() 312 copied = ret = 0; in iomap_dio_bio_iter() 348 copied += n; in iomap_dio_bio_iter() 372 iov_iter_reexpand(dio->submit.iter, orig_count - copied); in iomap_dio_bio_iter() 373 if (copied) in iomap_dio_bio_iter() 374 return copied; in iomap_dio_bio_iter() 397 size_t copied; in iomap_dio_inline_iter() local 407 copied = copy_from_iter(inline_data, length, iter); in iomap_dio_inline_iter() 408 if (copied) { in iomap_dio_inline_iter() [all …]
|
D | buffered-io.c | 655 size_t copied, struct page *page) in __iomap_write_end() argument 670 if (unlikely(copied < len && !PageUptodate(page))) in __iomap_write_end() 674 return copied; in __iomap_write_end() 678 struct page *page, loff_t pos, size_t copied) in iomap_write_end_inline() argument 688 memcpy(iomap_inline_data(iomap, pos), addr, copied); in iomap_write_end_inline() 692 return copied; in iomap_write_end_inline() 697 size_t copied, struct page *page) in iomap_write_end() argument 705 ret = iomap_write_end_inline(iter, page, pos, copied); in iomap_write_end() 708 copied, page, NULL); in iomap_write_end() 710 ret = __iomap_write_end(iter->inode, pos, len, copied, page); in iomap_write_end() [all …]
|
/fs/erofs/ |
D | inode.c | 27 struct erofs_inode_extended *die, *copied = NULL; in erofs_read_inode() local 72 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode() 73 if (!copied) { in erofs_read_inode() 77 memcpy(copied, dic, gotten); in erofs_read_inode() 85 kfree(copied); in erofs_read_inode() 89 memcpy((u8 *)copied + gotten, page_address(page), *ofs); in erofs_read_inode() 90 die = copied; in erofs_read_inode() 129 kfree(copied); in erofs_read_inode() 130 copied = NULL; in erofs_read_inode() 212 kfree(copied); in erofs_read_inode()
|
/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 | 367 int copied; in squashfs_fill_page() local 371 copied = squashfs_copy_data(pageaddr, buffer, offset, avail); in squashfs_fill_page() 372 memset(pageaddr + copied, 0, PAGE_SIZE - copied); in squashfs_fill_page() 376 if (copied == avail) in squashfs_fill_page()
|
/fs/ecryptfs/ |
D | mmap.c | 465 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end() argument 470 unsigned to = from + copied; in ecryptfs_write_end() 482 rc = copied; in ecryptfs_write_end() 489 if (copied < PAGE_SIZE) { in ecryptfs_write_end() 508 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end() 509 i_size_write(ecryptfs_inode, pos + copied); in ecryptfs_write_end() 519 rc = copied; in ecryptfs_write_end()
|
/fs/9p/ |
D | vfs_addr.c | 298 loff_t pos, unsigned int len, unsigned int copied, in v9fs_write_end() argument 301 loff_t last_pos = pos + copied; in v9fs_write_end() 307 if (unlikely(copied < len)) { in v9fs_write_end() 308 copied = 0; in v9fs_write_end() 327 return copied; in v9fs_write_end()
|
/fs/gfs2/ |
D | dir.c | 160 int copied = 0; in gfs2_dir_write_data() local 183 while (copied < size) { in gfs2_dir_write_data() 187 amount = size - copied; in gfs2_dir_write_data() 215 copied += amount; in gfs2_dir_write_data() 228 if (ip->i_inode.i_size < offset + copied) in gfs2_dir_write_data() 229 i_size_write(&ip->i_inode, offset + copied); in gfs2_dir_write_data() 236 return copied; in gfs2_dir_write_data() 238 if (copied) in gfs2_dir_write_data() 274 int copied = 0; in gfs2_dir_read_data() local 286 while (copied < size) { in gfs2_dir_read_data() [all …]
|
D | aops.c | 514 unsigned copied = 0; in gfs2_internal_read() local 520 amt = size - copied; in gfs2_internal_read() 527 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read() 530 copied += amt; in gfs2_internal_read() 533 } while(copied < size); in gfs2_internal_read()
|
/fs/ntfs/ |
D | file.c | 1687 unsigned len, copied; in ntfs_copy_from_user_iter() local 1693 copied = copy_page_from_iter_atomic(*pages, ofs, len, i); in ntfs_copy_from_user_iter() 1694 total += copied; in ntfs_copy_from_user_iter() 1695 bytes -= copied; in ntfs_copy_from_user_iter() 1698 if (copied < len) in ntfs_copy_from_user_iter() 1706 len = PAGE_SIZE - copied; in ntfs_copy_from_user_iter() 1710 zero_user(*pages, copied, len); in ntfs_copy_from_user_iter() 1712 copied = 0; in ntfs_copy_from_user_iter() 1776 size_t copied; in ntfs_perform_write() local 1859 copied = ntfs_copy_from_user_iter(pages + u, do_pages - u, ofs, in ntfs_perform_write() [all …]
|
/fs/vboxsf/ |
D | file.c | 309 loff_t pos, unsigned int len, unsigned int copied, in vboxsf_write_end() argument 320 if (!PageUptodate(page) && copied < len) in vboxsf_write_end() 321 zero_user(page, from + copied, len - copied); in vboxsf_write_end()
|
/fs/nfsd/ |
D | nfs4recover.c | 1685 int copied; in nfsd4_cltrack_legacy_topdir() local 1699 copied = snprintf(result, len, LEGACY_TOPDIR_ENV_PREFIX "%s", in nfsd4_cltrack_legacy_topdir() 1701 if (copied >= len) { in nfsd4_cltrack_legacy_topdir() 1713 int copied; in nfsd4_cltrack_legacy_recdir() local 1728 copied = snprintf(result, len, LEGACY_RECDIR_ENV_PREFIX "%s/", in nfsd4_cltrack_legacy_recdir() 1730 if (copied > (len - HEXDIR_LEN)) { in nfsd4_cltrack_legacy_recdir() 1736 copied = nfs4_make_rec_clidname(result + copied, name); in nfsd4_cltrack_legacy_recdir() 1737 if (copied) { in nfsd4_cltrack_legacy_recdir() 1748 int copied; in nfsd4_cltrack_client_has_session() local 1759 copied = snprintf(result, len, HAS_SESSION_ENV_PREFIX "%c", in nfsd4_cltrack_client_has_session() [all …]
|
/fs/ocfs2/ |
D | aops.c | 1927 unsigned len, unsigned *copied, in ocfs2_write_end_inline() argument 1933 if (unlikely(*copied < len)) { in ocfs2_write_end_inline() 1935 *copied = 0; in ocfs2_write_end_inline() 1941 memcpy(di->id2.i_data.id_data + pos, kaddr + pos, *copied); in ocfs2_write_end_inline() 1946 (unsigned long long)pos, *copied, in ocfs2_write_end_inline() 1952 loff_t pos, unsigned len, unsigned copied, void *fsdata) in ocfs2_write_end_nolock() argument 1969 copied = ret; in ocfs2_write_end_nolock() 1976 ocfs2_write_end_inline(inode, pos, len, &copied, di, wc); in ocfs2_write_end_nolock() 1980 if (unlikely(copied < len) && wc->w_target_page) { in ocfs2_write_end_nolock() 1984 copied = 0; in ocfs2_write_end_nolock() [all …]
|
/fs/hugetlbfs/ |
D | inode.c | 303 size_t copied = 0; in hugetlbfs_read_actor() local 318 copied += n; in hugetlbfs_read_actor() 320 return copied; in hugetlbfs_read_actor() 325 return copied; in hugetlbfs_read_actor() 347 size_t nr, copied; in hugetlbfs_read_iter() local 371 copied = iov_iter_zero(nr, to); in hugetlbfs_read_iter() 384 copied = hugetlbfs_read_actor(page, offset, to, nr); in hugetlbfs_read_iter() 387 offset += copied; in hugetlbfs_read_iter() 388 retval += copied; in hugetlbfs_read_iter() 389 if (copied != nr && iov_iter_count(to)) { in hugetlbfs_read_iter() [all …]
|
/fs/udf/ |
D | file.c | 114 loff_t pos, unsigned len, unsigned copied, in udf_adinicb_write_end() argument 118 loff_t last_pos = pos + copied; in udf_adinicb_write_end() 124 return copied; in udf_adinicb_write_end()
|
/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 558 int64_t copied = 0; in xfs_iextents_copy() local 569 copied += sizeof(struct xfs_bmbt_rec); in xfs_iextents_copy() 573 ASSERT(copied > 0); in xfs_iextents_copy() 574 ASSERT(copied <= ifp->if_bytes); in xfs_iextents_copy() 575 return copied; in xfs_iextents_copy()
|
/fs/afs/ |
D | write.c | 109 loff_t pos, unsigned len, unsigned copied, in afs_write_end() argument 115 unsigned int t, to = from + copied; in afs_write_end() 122 if (copied < len) { in afs_write_end() 123 copied = 0; in afs_write_end() 130 if (copied == 0) in afs_write_end() 133 maybe_i_size = pos + copied; in afs_write_end() 167 return copied; in afs_write_end()
|
/fs/configfs/ |
D | file.c | 184 int copied; in fill_write_buffer() local 191 copied = copy_from_iter(buffer->page, SIMPLE_ATTR_SIZE - 1, from); in fill_write_buffer() 195 buffer->page[copied] = 0; in fill_write_buffer() 196 return copied ? : -EFAULT; in fill_write_buffer()
|
/fs/btrfs/ |
D | verity.c | 300 int copied = 0; in read_key_bytes() local 338 if (copied > 0) { in read_key_bytes() 384 copied += copy_bytes; in read_key_bytes() 404 ret = copied; in read_key_bytes()
|
D | file.c | 391 size_t copied = 0; in btrfs_copy_from_user() local 403 copied = copy_page_from_iter_atomic(page, offset, count, i); in btrfs_copy_from_user() 417 if (unlikely(copied < count)) { in btrfs_copy_from_user() 419 iov_iter_revert(i, copied); in btrfs_copy_from_user() 420 copied = 0; in btrfs_copy_from_user() 422 if (!copied) in btrfs_copy_from_user() 426 write_bytes -= copied; in btrfs_copy_from_user() 427 total_copied += copied; in btrfs_copy_from_user() 428 offset += copied; in btrfs_copy_from_user() 1712 size_t copied; in btrfs_buffered_write() local [all …]
|
/fs/nfs/ |
D | file.c | 351 loff_t pos, unsigned len, unsigned copied, in nfs_write_end() argument 367 unsigned end = offset + copied; in nfs_write_end() 381 status = nfs_updatepage(file, page, offset, copied); in nfs_write_end() 388 NFS_I(mapping->host)->write_io += copied; in nfs_write_end() 393 return copied; in nfs_write_end()
|
/fs/jffs2/ |
D | file.c | 25 loff_t pos, unsigned len, unsigned copied, 246 loff_t pos, unsigned len, unsigned copied, in jffs2_write_end() argument 257 unsigned end = start + copied; in jffs2_write_end()
|