/Linux-v6.1/fs/configfs/ |
D | file.c | 93 __func__, iov_iter_count(to), iocb->ki_pos, buffer->page); in configfs_read_iter() 94 if (iocb->ki_pos >= buffer->count) in configfs_read_iter() 96 retval = copy_to_iter(buffer->page + iocb->ki_pos, in configfs_read_iter() 97 buffer->count - iocb->ki_pos, to); in configfs_read_iter() 98 iocb->ki_pos += retval; in configfs_read_iter() 168 if (iocb->ki_pos >= buffer->bin_buffer_size) in configfs_bin_read_iter() 170 retval = copy_to_iter(buffer->bin_buffer + iocb->ki_pos, in configfs_bin_read_iter() 171 buffer->bin_buffer_size - iocb->ki_pos, to); in configfs_bin_read_iter() 172 iocb->ki_pos += retval; in configfs_bin_read_iter() 231 iocb->ki_pos += len; in configfs_write_iter() [all …]
|
/Linux-v6.1/fs/coda/ |
D | file.c | 45 loff_t ki_pos = iocb->ki_pos; in coda_file_read_iter() local 51 count, ki_pos, CODA_ACCESS_TYPE_READ); in coda_file_read_iter() 55 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter() 60 count, ki_pos, CODA_ACCESS_TYPE_READ_FINISH); in coda_file_read_iter() 71 loff_t ki_pos = iocb->ki_pos; in coda_file_write_iter() local 77 count, ki_pos, CODA_ACCESS_TYPE_WRITE); in coda_file_write_iter() 83 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter() 93 count, ki_pos, CODA_ACCESS_TYPE_WRITE_FINISH); in coda_file_write_iter()
|
/Linux-v6.1/drivers/gpu/drm/display/ |
D | drm_dp_aux_dev.c | 149 loff_t pos = iocb->ki_pos; in auxdev_read_iter() 179 if (pos != iocb->ki_pos) in auxdev_read_iter() 180 res = pos - iocb->ki_pos; in auxdev_read_iter() 181 iocb->ki_pos = pos; in auxdev_read_iter() 192 loff_t pos = iocb->ki_pos; in auxdev_write_iter() 222 if (pos != iocb->ki_pos) in auxdev_write_iter() 223 res = pos - iocb->ki_pos; in auxdev_write_iter() 224 iocb->ki_pos = pos; in auxdev_write_iter()
|
/Linux-v6.1/fs/9p/ |
D | vfs_file.c | 372 iov_iter_count(to), iocb->ki_pos); in v9fs_file_read_iter() 375 ret = p9_client_read_once(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter() 377 ret = p9_client_read(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter() 381 iocb->ki_pos += ret; in v9fs_file_read_iter() 403 origin = iocb->ki_pos; in v9fs_file_write_iter() 404 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter() 415 iocb->ki_pos += retval; in v9fs_file_write_iter() 417 if (iocb->ki_pos > i_size) { in v9fs_file_write_iter() 418 inode_add_bytes(inode, iocb->ki_pos - i_size); in v9fs_file_write_iter() 423 v9fs_i_size_write(inode, iocb->ki_pos); in v9fs_file_write_iter()
|
/Linux-v6.1/fs/ext4/ |
D | file.c | 66 return IS_ALIGNED(iocb->ki_pos | iov_iter_alignment(iter), dio_align); in ext4_should_use_dio() 248 if (iocb->ki_pos >= sbi->s_bitmap_maxbytes) in ext4_generic_write_checks() 250 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks() 291 iocb->ki_pos += ret; in ext4_buffered_write_iter() 389 loff_t pos = iocb->ki_pos; in ext4_dio_write_end_io() 451 offset = iocb->ki_pos; in ext4_dio_write_checks() 491 loff_t offset = iocb->ki_pos; in ext4_dio_write_iter() 553 offset = iocb->ki_pos; in ext4_dio_write_iter() 606 offset = iocb->ki_pos; in ext4_dio_write_iter() 653 offset = iocb->ki_pos; in ext4_dax_write_iter()
|
/Linux-v6.1/block/ |
D | fops.c | 59 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple() 147 iocb->ki_pos += ret; in blkdev_bio_end_io() 179 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO() 279 iocb->ki_pos += ret; in blkdev_bio_end_io_async() 303 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_async() 528 if (iocb->ki_pos >= size) in blkdev_write_iter() 534 size -= iocb->ki_pos; in blkdev_write_iter() 553 loff_t pos = iocb->ki_pos; in blkdev_read_iter() 590 iocb->ki_pos += ret; in blkdev_read_iter()
|
/Linux-v6.1/fs/ceph/ |
D | file.c | 930 u64 off = iocb->ki_pos; in ceph_sync_read() 1036 if (off > iocb->ki_pos) { in ceph_sync_read() 1039 ret = i_size - iocb->ki_pos; in ceph_sync_read() 1040 iocb->ki_pos = i_size; in ceph_sync_read() 1042 ret = off - iocb->ki_pos; in ceph_sync_read() 1043 iocb->ki_pos = off; in ceph_sync_read() 1092 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete() 1157 loff_t endoff = aio_req->iocb->ki_pos + rc; in ceph_aio_complete_req() 1277 loff_t pos = iocb->ki_pos; in ceph_direct_read_write() 1341 if (pos == iocb->ki_pos && !is_sync_kiocb(iocb) && in ceph_direct_read_write() [all …]
|
/Linux-v6.1/fs/xfs/ |
D | xfs_file.c | 381 if (iocb->ki_pos <= i_size_read(inode)) in xfs_file_write_checks() 386 if (iocb->ki_pos > isize) { in xfs_file_write_checks() 412 trace_xfs_zero_eof(ip, isize, iocb->ki_pos - isize); in xfs_file_write_checks() 413 error = xfs_zero_range(ip, isize, iocb->ki_pos - isize, NULL); in xfs_file_write_checks() 432 loff_t offset = iocb->ki_pos; in xfs_dio_write_end_io() 585 if (iocb->ki_pos > isize || iocb->ki_pos + count >= isize) { in xfs_file_dio_write_unaligned() 651 if ((iocb->ki_pos | count) & target->bt_logical_sectormask) in xfs_file_dio_write() 653 if ((iocb->ki_pos | count) & ip->i_mount->m_blockmask) in xfs_file_dio_write() 676 pos = iocb->ki_pos; in xfs_file_dax_write() 680 if (ret > 0 && iocb->ki_pos > i_size_read(inode)) { in xfs_file_dax_write() [all …]
|
/Linux-v6.1/fs/nfs/ |
D | file.c | 166 iov_iter_count(to), (unsigned long) iocb->ki_pos); in nfs_file_read() 620 file, iov_iter_count(from), (long long) iocb->ki_pos); in nfs_file_write() 627 if (iocb->ki_flags & IOCB_APPEND || iocb->ki_pos > i_size_read(inode)) { in nfs_file_write() 648 iocb->ki_pos += written; in nfs_file_write() 653 iocb->ki_pos - written, in nfs_file_write() 654 iocb->ki_pos - 1); in nfs_file_write() 660 iocb->ki_pos - written, in nfs_file_write() 661 iocb->ki_pos - 1); in nfs_file_write()
|
D | direct.c | 421 file, count, (long long) iocb->ki_pos); in nfs_file_direct_read() 436 dreq->io_start = iocb->ki_pos; in nfs_file_direct_read() 455 requested = nfs_direct_read_schedule_iovec(dreq, iter, iocb->ki_pos); in nfs_file_direct_read() 464 iocb->ki_pos += result; in nfs_file_direct_read() 888 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write() 900 pos = iocb->ki_pos; in nfs_file_direct_write() 946 iocb->ki_pos = pos + result; in nfs_file_direct_write()
|
/Linux-v6.1/mm/ |
D | filemap.c | 2485 if (filemap_range_uptodate(mapping, iocb->ki_pos, iter, folio)) in filemap_update_page() 2567 pgoff_t index = iocb->ki_pos >> PAGE_SHIFT; in filemap_get_pages() 2572 last_index = DIV_ROUND_UP(iocb->ki_pos + iter->count, PAGE_SIZE); in filemap_get_pages() 2589 iocb->ki_pos >> PAGE_SHIFT, fbatch); in filemap_get_pages() 2653 if (unlikely(iocb->ki_pos >= inode->i_sb->s_maxbytes)) in filemap_read() 2672 if (unlikely(iocb->ki_pos >= i_size_read(inode))) in filemap_read() 2688 if (unlikely(iocb->ki_pos >= isize)) in filemap_read() 2690 end_offset = min_t(loff_t, isize, iocb->ki_pos + iter->count); in filemap_read() 2702 if (!pos_same_folio(iocb->ki_pos, ra->prev_pos - 1, in filemap_read() 2709 size_t offset = iocb->ki_pos & (fsize - 1); in filemap_read() [all …]
|
D | page_io.c | 308 sio->iocb.ki_pos + sio->len != pos) { in swap_writepage_fs() 317 sio->iocb.ki_pos = pos; in swap_writepage_fs() 422 sio->iocb.ki_pos + sio->len != pos) { in swap_readpage_fs() 430 sio->iocb.ki_pos = pos; in swap_readpage_fs()
|
/Linux-v6.1/io_uring/ |
D | rw.c | 82 rw->kiocb.ki_pos = READ_ONCE(sqe->off); in io_prep_rw() 157 if (rw->kiocb.ki_pos != -1) in io_kiocb_update_pos() 158 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() 162 rw->kiocb.ki_pos = req->file->f_pos; in io_kiocb_update_pos() 163 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() 166 rw->kiocb.ki_pos = 0; in io_kiocb_update_pos() 330 req->file->f_pos = rw->kiocb.ki_pos; in kiocb_done() 416 return (kiocb->ki_filp->f_mode & FMODE_STREAM) ? NULL : &kiocb->ki_pos; in io_kiocb_ppos() 939 trace_io_uring_short_write(req->ctx, kiocb->ki_pos - ret2, in io_write()
|
/Linux-v6.1/fs/zonefs/ |
D | super.c | 757 if (i_size_read(inode) < iocb->ki_pos + size) { in zonefs_file_write_dio_end_io() 758 zonefs_update_stats(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io() 759 zonefs_i_size_write(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io() 816 iocb->ki_pos += size; in zonefs_file_dio_append() 872 iocb->ki_pos = zi->i_wpoffset; in zonefs_write_checks() 876 count = zonefs_write_check_limits(file, iocb->ki_pos, in zonefs_write_checks() 926 if ((iocb->ki_pos | count) & (sb->s_blocksize - 1)) { in zonefs_file_dio_write() 934 if (iocb->ki_pos != zi->i_wpoffset) { in zonefs_file_dio_write() 997 iocb->ki_pos += ret; in zonefs_file_buffered_write() 1020 if (iocb->ki_pos >= ZONEFS_I(inode)->i_max_size) in zonefs_file_write_iter() [all …]
|
/Linux-v6.1/fs/ |
D | read_write.c | 386 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read() 392 *ppos = kiocb.ki_pos; in new_sync_read() 426 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read() 431 *pos = kiocb.ki_pos; in __kernel_read() 488 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_write() 494 *ppos = kiocb.ki_pos; in new_sync_write() 516 kiocb.ki_pos = pos ? *pos : 0; in __kernel_write_iter() 520 *pos = kiocb.ki_pos; in __kernel_write_iter() 730 kiocb.ki_pos = (ppos ? *ppos : 0); in do_iter_readv_writev() 738 *ppos = kiocb.ki_pos; in do_iter_readv_writev() [all …]
|
D | seq_file.c | 161 kiocb.ki_pos = *ppos; in seq_read() 163 *ppos = kiocb.ki_pos; in seq_read() 188 if (iocb->ki_pos == 0) { in seq_read_iter() 194 if (unlikely(iocb->ki_pos != m->read_pos)) { in seq_read_iter() 195 while ((err = traverse(m, iocb->ki_pos)) == -EAGAIN) in seq_read_iter() 204 m->read_pos = iocb->ki_pos; in seq_read_iter() 289 iocb->ki_pos += copied; in seq_read_iter()
|
/Linux-v6.1/fs/ext2/ |
D | file.c | 67 if (ret > 0 && iocb->ki_pos > i_size_read(inode)) { in ext2_dax_write_iter() 68 i_size_write(inode, iocb->ki_pos); in ext2_dax_write_iter()
|
/Linux-v6.1/fs/cachefiles/ |
D | io.c | 139 ki->iocb.ki_pos = start_pos + skipped; in cachefiles_read() 155 trace_cachefiles_read(object, file_inode(file), ki->iocb.ki_pos, len - skipped); in cachefiles_read() 310 ki->iocb.ki_pos = start_pos; in __cachefiles_write() 337 trace_cachefiles_write(object, inode, ki->iocb.ki_pos, len); in __cachefiles_write()
|
/Linux-v6.1/fs/overlayfs/ |
D | file.c | 282 orig_iocb->ki_pos = iocb->ki_pos; in ovl_aio_cleanup_handler() 317 ret = vfs_iter_read(real.file, iter, &iocb->ki_pos, in ovl_read_iter() 381 ret = vfs_iter_write(real.file, iter, &iocb->ki_pos, in ovl_write_iter()
|
/Linux-v6.1/fs/kernfs/ |
D | file.c | 247 len = ops->read(of, buf, len, iocb->ki_pos); in kernfs_file_read_iter() 262 iocb->ki_pos += len; in kernfs_file_read_iter() 330 len = ops->write(of, buf, len, iocb->ki_pos); in kernfs_fop_write_iter() 338 iocb->ki_pos += len; in kernfs_fop_write_iter()
|
/Linux-v6.1/fs/iomap/ |
D | direct-io.c | 85 loff_t offset = iocb->ki_pos; in iomap_dio_complete() 97 iocb->ki_pos += ret; in iomap_dio_complete() 492 .pos = iocb->ki_pos, in __iomap_dio_rw()
|
/Linux-v6.1/fs/gfs2/ |
D | file.c | 787 offs = offset_in_page(iocb->ki_pos); in should_fault_in_pages() 898 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write() 1049 iocb->ki_pos += ret; in gfs2_file_buffered_write() 1094 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter() 1141 (iocb->ki_pos - buffered) >> PAGE_SHIFT, in gfs2_file_write_iter() 1142 (iocb->ki_pos - 1) >> PAGE_SHIFT); in gfs2_file_write_iter()
|
/Linux-v6.1/fs/ntfs3/ |
D | file.c | 901 loff_t pos = iocb->ki_pos; in ntfs_compress_write() 1110 iocb->ki_pos += written; in ntfs_compress_write() 1111 if (iocb->ki_pos > ni->i_valid) in ntfs_compress_write() 1112 ni->i_valid = iocb->ki_pos; in ntfs_compress_write() 1159 ret = ntfs_extend(inode, iocb->ki_pos, ret, file); in ntfs_file_write_iter()
|
/Linux-v6.1/arch/s390/hypfs/ |
D | inode.c | 149 loff_t pos = iocb->ki_pos; in hypfs_read_iter() 159 iocb->ki_pos = pos + count; in hypfs_read_iter()
|
/Linux-v6.1/fs/fuse/ |
D | dax.c | 724 ((iocb->ki_pos) >= i_size_read(inode) || in file_extending_write() 725 (iocb->ki_pos + iov_iter_count(from) > i_size_read(inode)))); in file_extending_write() 734 ret = fuse_direct_io(&io, from, &iocb->ki_pos, FUSE_DIO_WRITE); in fuse_dax_direct_write() 736 fuse_write_update_attr(inode, iocb->ki_pos, ret); in fuse_dax_direct_write()
|