Home
last modified time | relevance | path

Searched refs:copied (Results 1 – 25 of 35) sorted by relevance

12

/fs/squashfs/
Dsymlink.c55 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()
Dcache.c336 int bytes, copied = length; in squashfs_read_metadata() local
362 return copied; in squashfs_read_metadata()
/fs/partitions/
Defi.c196 int copied = 512; in read_lba() local
201 if (copied > count) in read_lba()
202 copied = count; in read_lba()
203 memcpy(buffer, data, copied); in read_lba()
205 buffer += copied; in read_lba()
206 totalreadcount +=copied; in read_lba()
207 count -= copied; in read_lba()
/fs/gfs2/
Dops_address.c547 unsigned copied = 0; in gfs2_internal_read() local
553 amt = size - copied; in gfs2_internal_read()
560 memcpy(buf + copied, p + offset, amt); in gfs2_internal_read()
564 copied += amt; in gfs2_internal_read()
567 } while(copied < size); in gfs2_internal_read()
762 loff_t pos, unsigned len, unsigned copied, in gfs2_stuffed_write_end() argument
767 u64 to = pos + copied; in gfs2_stuffed_write_end()
774 memcpy(buf + pos, kaddr + pos, copied); in gfs2_stuffed_write_end()
775 memset(kaddr + pos + copied, 0, len - copied); in gfs2_stuffed_write_end()
798 return copied; in gfs2_stuffed_write_end()
[all …]
Ddir.c160 int copied = 0; in gfs2_dir_write_data() local
184 while (copied < size) { in gfs2_dir_write_data()
188 amount = size - copied; in gfs2_dir_write_data()
216 copied += amount; in gfs2_dir_write_data()
229 if (ip->i_disksize < offset + copied) in gfs2_dir_write_data()
230 ip->i_disksize = offset + copied; in gfs2_dir_write_data()
237 return copied; in gfs2_dir_write_data()
239 if (copied) in gfs2_dir_write_data()
277 int copied = 0; in gfs2_dir_read_data() local
298 while (copied < size) { in gfs2_dir_read_data()
[all …]
/fs/
Dseq_file.c135 size_t copied = 0; in seq_read() local
186 copied += n; in seq_read()
247 copied += n; in seq_read()
255 if (!copied) in seq_read()
256 copied = err; in seq_read()
258 *ppos += copied; in seq_read()
259 m->read_pos += copied; in seq_read()
263 return copied; in seq_read()
Dbuffer.c2089 loff_t pos, unsigned len, unsigned copied, in block_write_end() argument
2097 if (unlikely(copied < len)) { in block_write_end()
2111 copied = 0; in block_write_end()
2113 page_zero_new_buffers(page, start+copied, start+len); in block_write_end()
2118 __block_commit_write(inode, page, start, start+copied); in block_write_end()
2120 return copied; in block_write_end()
2125 loff_t pos, unsigned len, unsigned copied, in generic_write_end() argument
2131 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in generic_write_end()
2140 if (pos+copied > inode->i_size) { in generic_write_end()
2141 i_size_write(inode, pos+copied); in generic_write_end()
[all …]
Dlibfs.c390 loff_t pos, unsigned len, unsigned copied, in simple_write_end() argument
396 if (copied < len) { in simple_write_end()
398 memset(kaddr + from + copied, 0, len - copied); in simple_write_end()
403 simple_commit_write(file, page, from, from+copied); in simple_write_end()
408 return copied; in simple_write_end()
/fs/ecryptfs/
Dmmap.c474 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end() argument
479 unsigned to = from + copied; in ecryptfs_write_end()
506 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end()
507 i_size_write(ecryptfs_inode, pos + copied); in ecryptfs_write_end()
516 rc = copied; in ecryptfs_write_end()
/fs/ext3/
Dinode.c1231 loff_t pos, unsigned len, unsigned copied, in ext3_generic_write_end() argument
1236 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in ext3_generic_write_end()
1238 if (pos+copied > inode->i_size) { in ext3_generic_write_end()
1239 i_size_write(inode, pos+copied); in ext3_generic_write_end()
1243 return copied; in ext3_generic_write_end()
1255 loff_t pos, unsigned len, unsigned copied, in ext3_ordered_write_end() argument
1277 new_i_size = pos + copied; in ext3_ordered_write_end()
1280 ret2 = ext3_generic_write_end(file, mapping, pos, len, copied, in ext3_ordered_write_end()
1282 copied = ret2; in ext3_ordered_write_end()
1292 return ret ? ret : copied; in ext3_ordered_write_end()
[all …]
/fs/udf/
Dfile.c83 loff_t pos, unsigned len, unsigned copied, in udf_adinicb_write_end() argument
93 kaddr + offset, copied); in udf_adinicb_write_end()
96 return simple_write_end(file, mapping, pos, len, copied, page, fsdata); in udf_adinicb_write_end()
/fs/ocfs2/
Daops.c1843 unsigned len, unsigned *copied, in ocfs2_write_end_inline() argument
1849 if (unlikely(*copied < len)) { in ocfs2_write_end_inline()
1851 *copied = 0; in ocfs2_write_end_inline()
1857 memcpy(di->id2.i_data.id_data + pos, kaddr + pos, *copied); in ocfs2_write_end_inline()
1862 (unsigned long long)pos, *copied, in ocfs2_write_end_inline()
1868 loff_t pos, unsigned len, unsigned copied, in ocfs2_write_end_nolock() argument
1881 ocfs2_write_end_inline(inode, pos, len, &copied, di, wc); in ocfs2_write_end_nolock()
1885 if (unlikely(copied < len)) { in ocfs2_write_end_nolock()
1887 copied = 0; in ocfs2_write_end_nolock()
1889 ocfs2_zero_new_buffers(wc->w_target_page, start+copied, in ocfs2_write_end_nolock()
[all …]
Daops.h48 loff_t pos, unsigned len, unsigned copied,
/fs/ntfs/
Dfile.c1410 size_t copied, len, total = 0; in ntfs_copy_from_user_iovec() local
1417 copied = __ntfs_copy_from_user_iovec_inatomic(addr + ofs, in ntfs_copy_from_user_iovec()
1420 if (unlikely(copied != len)) { in ntfs_copy_from_user_iovec()
1423 copied = __ntfs_copy_from_user_iovec_inatomic(addr + ofs, in ntfs_copy_from_user_iovec()
1428 memset(addr + ofs + copied, 0, len - copied); in ntfs_copy_from_user_iovec()
1430 if (unlikely(copied != len)) in ntfs_copy_from_user_iovec()
1443 total += copied; in ntfs_copy_from_user_iovec()
1954 size_t copied; in ntfs_file_buffered_write() local
2048 copied = ntfs_copy_from_user(pages + u, do_pages - u, in ntfs_file_buffered_write()
2050 buf += copied; in ntfs_file_buffered_write()
[all …]
/fs/smbfs/
Dfile.c307 loff_t pos, unsigned len, unsigned copied, in smb_write_end() argument
314 status = smb_updatepage(file, page, offset, copied); in smb_write_end()
318 if (!PageUptodate(page) && copied == PAGE_CACHE_SIZE) in smb_write_end()
320 status = copied; in smb_write_end()
/fs/ext4/
Dinode.c1428 loff_t pos, unsigned len, unsigned copied, in ext4_ordered_write_end() argument
1438 (unsigned long long) pos, len, copied); in ext4_ordered_write_end()
1444 new_i_size = pos + copied; in ext4_ordered_write_end()
1454 ret2 = generic_write_end(file, mapping, pos, len, copied, in ext4_ordered_write_end()
1456 copied = ret2; in ext4_ordered_write_end()
1464 return ret ? ret : copied; in ext4_ordered_write_end()
1469 loff_t pos, unsigned len, unsigned copied, in ext4_writeback_write_end() argument
1480 (unsigned long long) pos, len, copied); in ext4_writeback_write_end()
1481 new_i_size = pos + copied; in ext4_writeback_write_end()
1491 ret2 = generic_write_end(file, mapping, pos, len, copied, in ext4_writeback_write_end()
[all …]
/fs/jffs2/
Dfile.c23 loff_t pos, unsigned len, unsigned copied,
228 loff_t pos, unsigned len, unsigned copied, in jffs2_write_end() argument
239 unsigned end = start + copied; in jffs2_write_end()
/fs/hugetlbfs/
Dinode.c193 unsigned long left, copied = 0; in hugetlbfs_read_actor() local
213 copied += (chunksize - left); in hugetlbfs_read_actor()
219 copied += chunksize; in hugetlbfs_read_actor()
222 return copied ? copied : -EFAULT; in hugetlbfs_read_actor()
335 loff_t pos, unsigned len, unsigned copied, in hugetlbfs_write_end() argument
/fs/cramfs/
Dinode.c342 int copied; in cramfs_readdir() local
356 copied = 0; in cramfs_readdir()
395 copied++; in cramfs_readdir()
/fs/ubifs/
Dfile.c527 loff_t pos, unsigned len, unsigned copied, in ubifs_write_end() argument
537 inode->i_ino, pos, page->index, len, copied, inode->i_size); in ubifs_write_end()
539 if (unlikely(copied < len && len == PAGE_CACHE_SIZE)) { in ubifs_write_end()
550 copied, len); in ubifs_write_end()
557 copied = do_readpage(page); in ubifs_write_end()
583 return copied; in ubifs_write_end()
/fs/cifs/
Dfile.c1470 loff_t pos, unsigned len, unsigned copied, in cifs_write_end() argument
1477 page, pos, copied)); in cifs_write_end()
1480 if (copied == len) in cifs_write_end()
1483 } else if (!PageUptodate(page) && copied == PAGE_CACHE_SIZE) in cifs_write_end()
1498 rc = cifs_write(file, page_data + offset, copied, &pos); in cifs_write_end()
1504 rc = copied; in cifs_write_end()
1505 pos += copied; in cifs_write_end()
/fs/afs/
Dwrite.c247 loff_t pos, unsigned len, unsigned copied, in afs_write_end() argument
256 maybe_i_size = pos + copied; in afs_write_end()
273 return copied; in afs_write_end()
/fs/nfs/
Dfile.c371 loff_t pos, unsigned len, unsigned copied, in nfs_write_end() argument
402 status = nfs_updatepage(file, page, offset, copied); in nfs_write_end()
409 return copied; in nfs_write_end()
Didmap.c360 char *data = (char *)msg->data + msg->copied; in idmap_pipe_upcall()
371 msg->copied += mlen; in idmap_pipe_upcall()
/fs/proc/
Dbase.c881 int copied; in mem_write() local
886 copied = -ESRCH; in mem_write()
893 copied = -ENOMEM; in mem_write()
898 copied = 0; in mem_write()
904 copied = -EFAULT; in mem_write()
909 if (!copied) in mem_write()
910 copied = -EIO; in mem_write()
913 copied += retval; in mem_write()
923 return copied; in mem_write()

12