/fs/ext4/ |
D | file.c | 52 unsigned long nr_segs, loff_t pos) in ext4_file_write() argument 66 size_t length = iov_length(iov, nr_segs); in ext4_file_write() 72 nr_segs = iov_shorten((struct iovec *)iov, nr_segs, in ext4_file_write() 77 ret = generic_file_aio_write(iocb, iov, nr_segs, pos); in ext4_file_write()
|
/fs/ |
D | read_write.c | 468 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to) in iov_shorten() argument 473 while (seg < nr_segs) { in iov_shorten() 487 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) in do_sync_readv_writev() argument 498 ret = fn(&kiocb, iov, nr_segs, kiocb.ki_pos); in do_sync_readv_writev() 512 unsigned long nr_segs, loff_t *ppos, io_fn_t fn) in do_loop_readv_writev() argument 517 while (nr_segs > 0) { in do_loop_readv_writev() 525 nr_segs--; in do_loop_readv_writev() 546 unsigned long nr_segs, unsigned long fast_segs, in rw_copy_check_uvector() argument 559 if (nr_segs == 0) { in rw_copy_check_uvector() 568 if (nr_segs > UIO_MAXIOV) { in rw_copy_check_uvector() [all …]
|
D | read_write.h | 12 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn); 14 unsigned long nr_segs, loff_t *ppos, io_fn_t fn);
|
D | splice.c | 1314 unsigned long nr_segs, unsigned int flags) in vmsplice_to_user() argument 1330 while (nr_segs) { in vmsplice_to_user() 1378 nr_segs--; in vmsplice_to_user() 1397 unsigned long nr_segs, unsigned int flags) in vmsplice_to_pipe() argument 1414 spd.nr_pages = get_iovec_page_array(iov, nr_segs, pages, partial, in vmsplice_to_pipe() 1439 unsigned long, nr_segs, unsigned int, flags) in SYSCALL_DEFINE4() argument 1445 if (unlikely(nr_segs > UIO_MAXIOV)) in SYSCALL_DEFINE4() 1447 else if (unlikely(!nr_segs)) in SYSCALL_DEFINE4() 1454 error = vmsplice_to_pipe(file, iov, nr_segs, flags); in SYSCALL_DEFINE4() 1456 error = vmsplice_to_user(file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
|
D | compat.c | 1065 unsigned long nr_segs, loff_t *pos) in compat_do_readv_writev() argument 1081 if (nr_segs == 0) in compat_do_readv_writev() 1089 if ((nr_segs > UIO_MAXIOV) || (nr_segs <= 0)) in compat_do_readv_writev() 1093 if (nr_segs > UIO_FASTIOV) { in compat_do_readv_writev() 1095 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); in compat_do_readv_writev() 1100 if (!access_ok(VERIFY_READ, uvector, nr_segs*sizeof(*uvector))) in compat_do_readv_writev() 1113 for (seg = 0 ; seg < nr_segs; seg++) { in compat_do_readv_writev() 1152 ret = do_sync_readv_writev(file, iov, nr_segs, tot_len, in compat_do_readv_writev() 1155 ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); in compat_do_readv_writev() 1225 unsigned int nr_segs, unsigned int flags) in compat_sys_vmsplice() argument [all …]
|
D | direct-io.c | 935 const struct iovec *iov, loff_t offset, unsigned long nr_segs, in direct_io_worker() argument 970 for (seg = 0; seg < nr_segs; seg++) { in direct_io_worker() 977 for (seg = 0; seg < nr_segs; seg++) { in direct_io_worker() 1113 unsigned long nr_segs, get_block_t get_block, dio_iodone_t end_io, in __blockdev_direct_IO() argument 1143 for (seg = 0; seg < nr_segs; seg++) { in __blockdev_direct_IO() 1210 nr_segs, blkbits, get_block, end_io, dio); in __blockdev_direct_IO()
|
D | bad_inode.c | 37 unsigned long nr_segs, loff_t pos) in bad_file_aio_read() argument 43 unsigned long nr_segs, loff_t pos) in bad_file_aio_write() argument
|
D | pipe.c | 283 unsigned long nr_segs, loff_t pos) in pipe_read() argument 293 total_len = iov_length(iov, nr_segs); in pipe_read() 396 unsigned long nr_segs, loff_t ppos) in pipe_write() argument 407 total_len = iov_length(iov, nr_segs); in pipe_write()
|
/fs/nfs/ |
D | direct.c | 116 …s_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t pos, unsigned long nr_segs) in nfs_direct_IO() argument 120 (long long) pos, nr_segs); in nfs_direct_IO() 380 unsigned long nr_segs, in nfs_direct_read_schedule_iovec() argument 389 for (seg = 0; seg < nr_segs; seg++) { in nfs_direct_read_schedule_iovec() 412 unsigned long nr_segs, loff_t pos) in nfs_direct_read() argument 427 result = nfs_direct_read_schedule_iovec(dreq, iov, nr_segs, pos); in nfs_direct_read() 798 unsigned long nr_segs, in nfs_direct_write_schedule_iovec() argument 807 for (seg = 0; seg < nr_segs; seg++) { in nfs_direct_write_schedule_iovec() 831 unsigned long nr_segs, loff_t pos, in nfs_direct_write() argument 853 result = nfs_direct_write_schedule_iovec(dreq, iov, nr_segs, pos, sync); in nfs_direct_write() [all …]
|
D | file.c | 49 unsigned long nr_segs, loff_t pos); 51 unsigned long nr_segs, loff_t pos); 257 unsigned long nr_segs, loff_t pos) in nfs_file_read() argument 262 size_t count = iov_length(iov, nr_segs); in nfs_file_read() 265 return nfs_file_direct_read(iocb, iov, nr_segs, pos); in nfs_file_read() 274 result = generic_file_aio_read(iocb, iov, nr_segs, pos); in nfs_file_read() 507 unsigned long nr_segs, loff_t pos) in nfs_file_write() argument 512 size_t count = iov_length(iov, nr_segs); in nfs_file_write() 515 return nfs_file_direct_write(iocb, iov, nr_segs, pos); in nfs_file_write() 538 result = generic_file_aio_write(iocb, iov, nr_segs, pos); in nfs_file_write()
|
/fs/fuse/ |
D | dev.c | 495 unsigned long nr_segs; member 506 const struct iovec *iov, unsigned long nr_segs) in fuse_copy_init() argument 513 cs->nr_segs = nr_segs; in fuse_copy_init() 542 BUG_ON(!cs->nr_segs); in fuse_copy_fill() 546 cs->nr_segs--; in fuse_copy_fill() 702 const struct iovec *iov, unsigned long nr_segs) in fuse_read_interrupt() argument 721 if (iov_length(iov, nr_segs) < reqsize) in fuse_read_interrupt() 724 fuse_copy_init(&cs, fc, 1, NULL, iov, nr_segs); in fuse_read_interrupt() 743 unsigned long nr_segs, loff_t pos) in fuse_dev_read() argument 773 return fuse_read_interrupt(fc, req, iov, nr_segs); in fuse_dev_read() [all …]
|
D | file.c | 590 unsigned long nr_segs, loff_t pos) in fuse_file_aio_read() argument 594 if (pos + iov_length(iov, nr_segs) > i_size_read(inode)) { in fuse_file_aio_read() 605 return generic_file_aio_read(iocb, iov, nr_segs, pos); in fuse_file_aio_read() 878 unsigned long nr_segs, loff_t pos) in fuse_file_aio_write() argument 890 err = generic_segment_checks(iov, &nr_segs, &count, VERIFY_READ); in fuse_file_aio_write() 913 iov_iter_init(&i, iov, nr_segs, count, 0); in fuse_file_aio_write() 1487 unsigned int nr_segs, size_t bytes, bool to_user) in fuse_ioctl_copy_user() argument 1495 iov_iter_init(&ii, iov, nr_segs, bytes, 0); in fuse_ioctl_copy_user()
|
/fs/xfs/linux-2.6/ |
D | xfs_file.c | 52 unsigned long nr_segs, in xfs_file_aio_read() argument 64 nr_segs, &iocb->ki_pos, ioflags); in xfs_file_aio_read() 71 unsigned long nr_segs, in xfs_file_aio_write() argument 82 return xfs_write(XFS_I(file->f_mapping->host), iocb, iov, nr_segs, in xfs_file_aio_write()
|
D | xfs_aops.c | 1527 unsigned long nr_segs) in xfs_vm_direct_IO() argument 1539 bdev, iov, offset, nr_segs, in xfs_vm_direct_IO() 1545 bdev, iov, offset, nr_segs, in xfs_vm_direct_IO()
|
/fs/ext3/ |
D | file.c | 52 unsigned long nr_segs, loff_t pos) in ext3_file_write() argument 59 ret = generic_file_aio_write(iocb, iov, nr_segs, pos); in ext3_file_write()
|
/fs/smbfs/ |
D | file.c | 219 unsigned long nr_segs, loff_t pos) in smb_file_aio_read() argument 239 status = generic_file_aio_read(iocb, iov, nr_segs, pos); in smb_file_aio_read() 341 unsigned long nr_segs, loff_t pos) in smb_file_aio_write() argument 363 result = generic_file_aio_write(iocb, iov, nr_segs, pos); in smb_file_aio_write()
|
/fs/udf/ |
D | file.c | 108 unsigned long nr_segs, loff_t ppos) in udf_file_aio_write() argument 139 retval = generic_file_aio_write(iocb, iov, nr_segs, ppos); in udf_file_aio_write()
|
/fs/ntfs/ |
D | file.c | 1783 const struct iovec *iov, unsigned long nr_segs, in ntfs_file_buffered_write() argument 1948 if (likely(nr_segs == 1)) in ntfs_file_buffered_write() 2008 if (likely(nr_segs == 1)) in ntfs_file_buffered_write() 2047 if (likely(nr_segs == 1)) { in ntfs_file_buffered_write() 2098 const struct iovec *iov, unsigned long nr_segs, loff_t *ppos) in ntfs_file_aio_write_nolock() argument 2108 err = generic_segment_checks(iov, &nr_segs, &count, VERIFY_READ); in ntfs_file_aio_write_nolock() 2125 written = ntfs_file_buffered_write(iocb, iov, nr_segs, pos, ppos, in ntfs_file_aio_write_nolock() 2136 unsigned long nr_segs, loff_t pos) in ntfs_file_aio_write() argument 2146 ret = ntfs_file_aio_write_nolock(iocb, iov, nr_segs, &iocb->ki_pos); in ntfs_file_aio_write() 2163 unsigned long nr_segs, loff_t *ppos) in ntfs_file_writev() argument [all …]
|
/fs/afs/ |
D | write.c | 668 unsigned long nr_segs, loff_t pos) in afs_file_write() argument 673 size_t count = iov_length(iov, nr_segs); in afs_file_write() 677 vnode->fid.vid, vnode->fid.vnode, count, nr_segs); in afs_file_write() 688 result = generic_file_aio_write(iocb, iov, nr_segs, pos); in afs_file_write()
|
/fs/jfs/ |
D | inode.c | 310 const struct iovec *iov, loff_t offset, unsigned long nr_segs) in jfs_direct_IO() argument 316 offset, nr_segs, jfs_get_block, NULL); in jfs_direct_IO()
|
/fs/ecryptfs/ |
D | file.c | 48 unsigned long nr_segs, loff_t pos) in ecryptfs_read_update_atime() argument 55 rc = generic_file_aio_read(iocb, iov, nr_segs, pos); in ecryptfs_read_update_atime()
|
/fs/ocfs2/ |
D | file.c | 1760 unsigned long nr_segs, in ocfs2_file_aio_write() argument 1775 (unsigned int)nr_segs, in ocfs2_file_aio_write() 1839 ret = generic_segment_checks(iov, &nr_segs, &ocount, in ocfs2_file_aio_write() 1849 written = generic_file_direct_write(iocb, iov, &nr_segs, *ppos, in ocfs2_file_aio_write() 1863 written = generic_file_aio_write_nolock(iocb, iov, nr_segs, in ocfs2_file_aio_write() 1988 unsigned long nr_segs, in ocfs2_file_aio_read() argument 1996 (unsigned int)nr_segs, in ocfs2_file_aio_read() 2040 ret = generic_file_aio_read(iocb, iov, nr_segs, iocb->ki_pos); in ocfs2_file_aio_read()
|
/fs/hfsplus/ |
D | inode.c | 104 const struct iovec *iov, loff_t offset, unsigned long nr_segs) in hfsplus_direct_IO() argument 110 offset, nr_segs, hfsplus_get_block, NULL); in hfsplus_direct_IO()
|
/fs/hfs/ |
D | inode.c | 107 const struct iovec *iov, loff_t offset, unsigned long nr_segs) in hfs_direct_IO() argument 113 offset, nr_segs, hfs_get_block, NULL); in hfs_direct_IO()
|
/fs/cifs/ |
D | cifsfs.c | 613 unsigned long nr_segs, loff_t pos) in cifs_file_aio_write() argument 618 written = generic_file_aio_write(iocb, iov, nr_segs, pos); in cifs_file_aio_write()
|