Home
last modified time | relevance | path

Searched refs:nr_segs (Results 1 – 25 of 36) sorted by relevance

12

/fs/ext4/
Dfile.c52 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/
Dread_write.c468 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 …]
Dread_write.h12 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);
Dsplice.c1314 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()
Dcompat.c1065 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 …]
Ddirect-io.c935 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()
Dbad_inode.c37 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
Dpipe.c283 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/
Ddirect.c116 …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 …]
Dfile.c49 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/
Ddev.c495 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 …]
Dfile.c590 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/
Dxfs_file.c52 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()
Dxfs_aops.c1527 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/
Dfile.c52 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/
Dfile.c219 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/
Dfile.c108 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/
Dfile.c1783 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/
Dwrite.c668 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/
Dinode.c310 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/
Dfile.c48 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/
Dfile.c1760 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/
Dinode.c104 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/
Dinode.c107 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/
Dcifsfs.c613 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()

12