/fs/squashfs/ |
D | symlink.c | 55 int bytes, copied; in squashfs_symlink_readpage() local 83 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage() 94 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage() 96 if (copied == length - bytes) in squashfs_symlink_readpage()
|
/fs/9p/ |
D | vfs_addr.c | 309 loff_t pos, unsigned len, unsigned copied, in v9fs_write_end() argument 312 loff_t last_pos = pos + copied; in v9fs_write_end() 315 if (unlikely(copied < len)) { in v9fs_write_end() 321 zero_user(page, from + copied, len - copied); in v9fs_write_end() 339 return copied; in v9fs_write_end()
|
/fs/logfs/ |
D | file.c | 39 loff_t pos, unsigned len, unsigned copied, struct page *page, in logfs_write_end() argument 45 unsigned end = start + copied; in logfs_write_end() 51 if (copied < len) { in logfs_write_end() 57 copied = 0; in logfs_write_end() 61 if (copied == 0) in logfs_write_end() 79 return ret ? ret : copied; in logfs_write_end()
|
/fs/gfs2/ |
D | aops.c | 532 unsigned copied = 0; in gfs2_internal_read() local 538 amt = size - copied; in gfs2_internal_read() 545 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read() 549 copied += amt; in gfs2_internal_read() 552 } while(copied < size); in gfs2_internal_read() 772 loff_t pos, unsigned len, unsigned copied, in gfs2_stuffed_write_end() argument 778 u64 to = pos + copied; in gfs2_stuffed_write_end() 784 memcpy(buf + pos, kaddr + pos, copied); in gfs2_stuffed_write_end() 785 memset(kaddr + pos + copied, 0, len - copied); in gfs2_stuffed_write_end() 794 if (copied) { in gfs2_stuffed_write_end() [all …]
|
D | dir.c | 161 int copied = 0; in gfs2_dir_write_data() local 185 while (copied < size) { in gfs2_dir_write_data() 189 amount = size - copied; in gfs2_dir_write_data() 217 copied += amount; in gfs2_dir_write_data() 230 if (ip->i_inode.i_size < offset + copied) in gfs2_dir_write_data() 231 i_size_write(&ip->i_inode, offset + copied); in gfs2_dir_write_data() 238 return copied; in gfs2_dir_write_data() 240 if (copied) in gfs2_dir_write_data() 276 int copied = 0; in gfs2_dir_read_data() local 288 while (copied < size) { in gfs2_dir_read_data() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 480 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end() argument 485 unsigned to = from + copied; in ecryptfs_write_end() 497 rc = copied; in ecryptfs_write_end() 504 if (copied < PAGE_CACHE_SIZE) { in ecryptfs_write_end() 523 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end() 524 i_size_write(ecryptfs_inode, pos + copied); in ecryptfs_write_end() 534 rc = copied; in ecryptfs_write_end()
|
/fs/ext3/ |
D | inode.c | 1354 static void update_file_sizes(struct inode *inode, loff_t pos, unsigned copied) in update_file_sizes() argument 1357 if (pos + copied > inode->i_size) in update_file_sizes() 1358 i_size_write(inode, pos + copied); in update_file_sizes() 1359 if (pos + copied > EXT3_I(inode)->i_disksize) { in update_file_sizes() 1360 EXT3_I(inode)->i_disksize = pos + copied; in update_file_sizes() 1374 loff_t pos, unsigned len, unsigned copied, in ext3_ordered_write_end() argument 1382 trace_ext3_ordered_write_end(inode, pos, len, copied); in ext3_ordered_write_end() 1383 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in ext3_ordered_write_end() 1386 to = from + copied; in ext3_ordered_write_end() 1391 update_file_sizes(inode, pos, copied); in ext3_ordered_write_end() [all …]
|
/fs/ntfs/ |
D | file.c | 1399 size_t copied, len, total = 0; in ntfs_copy_from_user_iovec() local 1406 copied = __ntfs_copy_from_user_iovec_inatomic(addr + ofs, in ntfs_copy_from_user_iovec() 1409 if (unlikely(copied != len)) { in ntfs_copy_from_user_iovec() 1412 copied = __ntfs_copy_from_user_iovec_inatomic(addr + in ntfs_copy_from_user_iovec() 1414 if (unlikely(copied != len)) in ntfs_copy_from_user_iovec() 1428 BUG_ON(copied > len); in ntfs_copy_from_user_iovec() 1430 memset(addr + ofs + copied, 0, len - copied); in ntfs_copy_from_user_iovec() 1432 total += copied; in ntfs_copy_from_user_iovec() 1433 ntfs_set_next_iovec(iov, iov_ofs, copied); in ntfs_copy_from_user_iovec() 1949 size_t copied; in ntfs_file_buffered_write() local [all …]
|
/fs/ |
D | seq_file.c | 167 size_t copied = 0; in seq_read() local 220 copied += n; in seq_read() 281 copied += n; in seq_read() 289 if (!copied) in seq_read() 290 copied = err; in seq_read() 292 *ppos += copied; in seq_read() 293 m->read_pos += copied; in seq_read() 297 return copied; in seq_read()
|
D | buffer.c | 1992 loff_t pos, unsigned len, unsigned copied, in block_write_end() argument 2000 if (unlikely(copied < len)) { in block_write_end() 2014 copied = 0; in block_write_end() 2016 page_zero_new_buffers(page, start+copied, start+len); in block_write_end() 2021 __block_commit_write(inode, page, start, start+copied); in block_write_end() 2023 return copied; in block_write_end() 2028 loff_t pos, unsigned len, unsigned copied, in generic_write_end() argument 2035 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in generic_write_end() 2044 if (pos+copied > inode->i_size) { in generic_write_end() 2045 i_size_write(inode, pos+copied); in generic_write_end() [all …]
|
D | libfs.c | 438 loff_t pos, unsigned len, unsigned copied, in simple_write_end() argument 442 loff_t last_pos = pos + copied; in simple_write_end() 445 if (copied < len) { in simple_write_end() 448 zero_user(page, from + copied, len - copied); in simple_write_end() 464 return copied; in simple_write_end()
|
/fs/btrfs/ |
D | file.c | 422 size_t copied = 0; in btrfs_copy_from_user() local 438 copied = iov_iter_copy_from_user_atomic(page, i, offset, count); in btrfs_copy_from_user() 453 if (!PageUptodate(page) && copied < count) in btrfs_copy_from_user() 454 copied = 0; in btrfs_copy_from_user() 456 iov_iter_advance(i, copied); in btrfs_copy_from_user() 457 write_bytes -= copied; in btrfs_copy_from_user() 458 total_copied += copied; in btrfs_copy_from_user() 461 if (unlikely(copied == 0)) in btrfs_copy_from_user() 464 if (unlikely(copied < PAGE_CACHE_SIZE - offset)) { in btrfs_copy_from_user() 465 offset += copied; in btrfs_copy_from_user() [all …]
|
/fs/ocfs2/ |
D | aops.c | 1967 unsigned len, unsigned *copied, in ocfs2_write_end_inline() argument 1973 if (unlikely(*copied < len)) { in ocfs2_write_end_inline() 1975 *copied = 0; in ocfs2_write_end_inline() 1981 memcpy(di->id2.i_data.id_data + pos, kaddr + pos, *copied); in ocfs2_write_end_inline() 1986 (unsigned long long)pos, *copied, in ocfs2_write_end_inline() 1992 loff_t pos, unsigned len, unsigned copied, in ocfs2_write_end_nolock() argument 2005 ocfs2_write_end_inline(inode, pos, len, &copied, di, wc); in ocfs2_write_end_nolock() 2009 if (unlikely(copied < len)) { in ocfs2_write_end_nolock() 2011 copied = 0; in ocfs2_write_end_nolock() 2013 ocfs2_zero_new_buffers(wc->w_target_page, start+copied, in ocfs2_write_end_nolock() [all …]
|
/fs/udf/ |
D | file.c | 105 loff_t pos, unsigned len, unsigned copied, in udf_adinicb_write_end() argument 115 kaddr + offset, copied); in udf_adinicb_write_end() 118 return simple_write_end(file, mapping, pos, len, copied, page, fsdata); in udf_adinicb_write_end()
|
/fs/nfsd/ |
D | nfs4recover.c | 1071 int copied; in nfsd4_cltrack_legacy_topdir() local 1085 copied = snprintf(result, len, LEGACY_TOPDIR_ENV_PREFIX "%s", in nfsd4_cltrack_legacy_topdir() 1087 if (copied >= len) { in nfsd4_cltrack_legacy_topdir() 1099 int copied; in nfsd4_cltrack_legacy_recdir() local 1114 copied = snprintf(result, len, LEGACY_RECDIR_ENV_PREFIX "%s/", in nfsd4_cltrack_legacy_recdir() 1116 if (copied > (len - HEXDIR_LEN)) { in nfsd4_cltrack_legacy_recdir() 1122 copied = nfs4_make_rec_clidname(result + copied, name); in nfsd4_cltrack_legacy_recdir() 1123 if (copied) { in nfsd4_cltrack_legacy_recdir()
|
/fs/ext4/ |
D | inode.c | 1122 loff_t pos, unsigned len, unsigned copied, in ext4_write_end() argument 1130 trace_ext4_write_end(inode, pos, len, copied); in ext4_write_end() 1133 copied, page); in ext4_write_end() 1136 copied = ret; in ext4_write_end() 1138 copied = block_write_end(file, mapping, pos, in ext4_write_end() 1139 len, copied, page, fsdata); in ext4_write_end() 1144 i_size_changed = ext4_update_inode_size(inode, pos + copied); in ext4_write_end() 1179 return ret ? ret : copied; in ext4_write_end() 1184 loff_t pos, unsigned len, unsigned copied, in ext4_journalled_write_end() argument 1194 trace_ext4_journalled_write_end(inode, pos, len, copied); in ext4_journalled_write_end() [all …]
|
D | inline.c | 718 unsigned copied, struct page *page) in ext4_write_inline_data_end() argument 724 if (unlikely(copied < len)) { in ext4_write_inline_data_end() 726 copied = 0; in ext4_write_inline_data_end() 734 copied = 0; in ext4_write_inline_data_end() 751 return copied; in ext4_write_inline_data_end() 927 unsigned len, unsigned copied, in ext4_da_write_inline_data_end() argument 932 copied = ext4_write_inline_data_end(inode, pos, len, copied, page); in ext4_da_write_inline_data_end() 941 if (pos+copied > inode->i_size) { in ext4_da_write_inline_data_end() 942 i_size_write(inode, pos+copied); in ext4_da_write_inline_data_end() 957 return copied; in ext4_da_write_inline_data_end()
|
/fs/jffs2/ |
D | file.c | 25 loff_t pos, unsigned len, unsigned copied, 242 loff_t pos, unsigned len, unsigned copied, in jffs2_write_end() argument 253 unsigned end = start + copied; in jffs2_write_end()
|
/fs/cifs/ |
D | file.c | 2111 loff_t pos, unsigned len, unsigned copied, in cifs_write_end() argument 2126 page, pos, copied); in cifs_write_end() 2129 if (copied == len) in cifs_write_end() 2132 } else if (!PageUptodate(page) && copied == PAGE_CACHE_SIZE) in cifs_write_end() 2147 rc = cifs_write(cfile, pid, page_data + offset, copied, &pos); in cifs_write_end() 2153 rc = copied; in cifs_write_end() 2154 pos += copied; in cifs_write_end() 2357 size_t copied, len, cur_len; in cifs_iovec_write() local 2412 copied = min_t(const size_t, cur_len, PAGE_SIZE); in cifs_iovec_write() 2413 copied = iov_iter_copy_from_user(wdata->pages[i], &it, in cifs_iovec_write() [all …]
|
/fs/ceph/ |
D | addr.c | 1134 loff_t pos, unsigned len, unsigned copied, in ceph_write_end() argument 1144 inode, page, (int)pos, (int)copied, (int)len); in ceph_write_end() 1147 if (copied < len) in ceph_write_end() 1148 zero_user_segment(page, from+copied, len); in ceph_write_end() 1152 if (pos+copied > inode->i_size) in ceph_write_end() 1153 check_cap = ceph_inode_set_size(inode, pos+copied); in ceph_write_end() 1167 return copied; in ceph_write_end()
|
/fs/hpfs/ |
D | file.c | 139 loff_t pos, unsigned len, unsigned copied, in hpfs_write_end() argument 144 err = generic_write_end(file, mapping, pos, len, copied, pagep, fsdata); in hpfs_write_end()
|
/fs/hugetlbfs/ |
D | inode.c | 192 unsigned long left, copied = 0; in hugetlbfs_read_actor() local 212 copied += (chunksize - left); in hugetlbfs_read_actor() 218 copied += chunksize; in hugetlbfs_read_actor() 221 return copied ? copied : -EFAULT; in hugetlbfs_read_actor() 317 loff_t pos, unsigned len, unsigned copied, in hugetlbfs_write_end() argument
|
/fs/nilfs2/ |
D | dir.c | 96 unsigned nr_dirty, copied; in nilfs_commit_chunk() local 100 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk() 101 if (pos + copied > dir->i_size) in nilfs_commit_chunk() 102 i_size_write(dir, pos + copied); in nilfs_commit_chunk()
|
/fs/cramfs/ |
D | inode.c | 359 int copied; in cramfs_readdir() local 373 copied = 0; in cramfs_readdir() 412 copied++; in cramfs_readdir()
|
/fs/ubifs/ |
D | file.c | 540 loff_t pos, unsigned len, unsigned copied, in ubifs_write_end() argument 550 inode->i_ino, pos, page->index, len, copied, inode->i_size); in ubifs_write_end() 552 if (unlikely(copied < len && len == PAGE_CACHE_SIZE)) { in ubifs_write_end() 563 copied, len); in ubifs_write_end() 571 copied = do_readpage(page); in ubifs_write_end() 597 return copied; in ubifs_write_end()
|