/kernel/linux/linux-5.10/fs/coda/ |
D | file.c | 43 loff_t ki_pos = iocb->ki_pos; in coda_file_read_iter() local 49 count, ki_pos, CODA_ACCESS_TYPE_READ); in coda_file_read_iter() 53 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter() 58 count, ki_pos, CODA_ACCESS_TYPE_READ_FINISH); in coda_file_read_iter() 69 loff_t ki_pos = iocb->ki_pos; in coda_file_write_iter() local 75 count, ki_pos, CODA_ACCESS_TYPE_WRITE); in coda_file_write_iter() 81 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter() 91 count, ki_pos, CODA_ACCESS_TYPE_WRITE_FINISH); in coda_file_write_iter()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
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()
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_file.c | 228 trace_xfs_file_direct_read(ip, count, iocb->ki_pos); in xfs_file_dio_aio_read() 257 trace_xfs_file_dax_read(ip, count, iocb->ki_pos); in xfs_file_dax_read() 284 trace_xfs_file_buffered_read(ip, iov_iter_count(to), iocb->ki_pos); in xfs_file_buffered_aio_read() 381 if (iocb->ki_pos > isize) { in xfs_file_aio_write_checks() 403 trace_xfs_zero_eof(ip, isize, iocb->ki_pos - isize); in xfs_file_aio_write_checks() 404 error = iomap_zero_range(inode, isize, iocb->ki_pos - isize, in xfs_file_aio_write_checks() 429 loff_t offset = iocb->ki_pos; in xfs_dio_write_end_io() 543 if ((iocb->ki_pos | count) & target->bt_logical_sectormask) in xfs_file_dio_aio_write() 553 if ((iocb->ki_pos & mp->m_blockmask) || in xfs_file_dio_aio_write() 554 ((iocb->ki_pos + count) & mp->m_blockmask)) { in xfs_file_dio_aio_write() [all …]
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_file.c | 389 iov_iter_count(to), iocb->ki_pos); in v9fs_file_read_iter() 392 ret = p9_client_read_once(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter() 394 ret = p9_client_read(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter() 398 iocb->ki_pos += ret; in v9fs_file_read_iter() 422 origin = iocb->ki_pos; in v9fs_file_write_iter() 423 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter() 433 iocb->ki_pos += retval; in v9fs_file_write_iter() 435 if (iocb->ki_pos > i_size) { in v9fs_file_write_iter() 436 inode_add_bytes(inode, iocb->ki_pos - i_size); in v9fs_file_write_iter() 441 v9fs_i_size_write(inode, iocb->ki_pos); in v9fs_file_write_iter()
|
D | vfs_addr.c | 238 loff_t pos = iocb->ki_pos; in v9fs_direct_IO()
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | file.c | 875 u64 off = iocb->ki_pos; in ceph_sync_read() 982 if (off > iocb->ki_pos) { in ceph_sync_read() 986 ret = off - iocb->ki_pos; in ceph_sync_read() 987 iocb->ki_pos = off; in ceph_sync_read() 1035 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete() 1111 loff_t endoff = aio_req->iocb->ki_pos + rc; in ceph_aio_complete_req() 1222 loff_t pos = iocb->ki_pos; in ceph_direct_read_write() 1282 if (pos == iocb->ki_pos && !is_sync_kiocb(iocb) && in ceph_direct_read_write() 1400 if (ret != -EOLDSNAPC && pos > iocb->ki_pos) { in ceph_direct_read_write() 1401 ret = pos - iocb->ki_pos; in ceph_direct_read_write() [all …]
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | file.c | 232 if (iocb->ki_pos >= sbi->s_bitmap_maxbytes) in ext4_generic_write_checks() 234 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks() 270 ret = generic_perform_write(iocb->ki_filp, from, iocb->ki_pos); in ext4_buffered_write_iter() 277 iocb->ki_pos += ret; in ext4_buffered_write_iter() 375 loff_t pos = iocb->ki_pos; in ext4_dio_write_end_io() 437 offset = iocb->ki_pos; in ext4_dio_write_checks() 477 loff_t offset = iocb->ki_pos; in ext4_dio_write_iter() 539 offset = iocb->ki_pos; in ext4_dio_write_iter() 593 offset = iocb->ki_pos; in ext4_dio_write_iter() 640 offset = iocb->ki_pos; in ext4_dax_write_iter()
|
/kernel/linux/linux-5.10/fs/ |
D | read_write.c | 407 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read() 413 *ppos = kiocb.ki_pos; in new_sync_read() 447 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read() 452 *pos = kiocb.ki_pos; in __kernel_read() 510 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_write() 516 *ppos = kiocb.ki_pos; in new_sync_write() 543 kiocb.ki_pos = pos ? *pos : 0; in __kernel_write() 548 *pos = kiocb.ki_pos; in __kernel_write() 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()
|
D | block_dev.c | 243 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple() 350 iocb->ki_pos += ret; in blkdev_bio_end_io() 385 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO() 1921 if (iocb->ki_pos >= size) in blkdev_write_iter() 1927 size -= iocb->ki_pos; in blkdev_write_iter() 1948 loff_t pos = iocb->ki_pos; in blkdev_read_iter()
|
D | direct-io.c | 238 loff_t offset = dio->iocb->ki_pos; in dio_complete() 307 dio->iocb->ki_pos += transferred; in dio_complete() 1137 loff_t offset = iocb->ki_pos; in do_blockdev_direct_IO()
|
/kernel/linux/linux-5.10/fs/zonefs/ |
D | super.c | 722 if (i_size_read(inode) < iocb->ki_pos + size) { in zonefs_file_write_dio_end_io() 723 zonefs_update_stats(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io() 724 zonefs_i_size_write(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io() 804 iocb->ki_pos += size; in zonefs_file_dio_append() 860 iocb->ki_pos = zi->i_wpoffset; in zonefs_write_checks() 864 count = zonefs_write_check_limits(file, iocb->ki_pos, in zonefs_write_checks() 914 if ((iocb->ki_pos | count) & (sb->s_blocksize - 1)) { in zonefs_file_dio_write() 922 if (iocb->ki_pos != zi->i_wpoffset) { in zonefs_file_dio_write() 978 iocb->ki_pos += ret; in zonefs_file_buffered_write() 1001 if (iocb->ki_pos >= ZONEFS_I(inode)->i_max_size) in zonefs_file_write_iter() [all …]
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | direct.c | 456 file, count, (long long) iocb->ki_pos); in nfs_file_direct_read() 471 dreq->io_start = iocb->ki_pos; in nfs_file_direct_read() 490 requested = nfs_direct_read_schedule_iovec(dreq, iter, iocb->ki_pos); in nfs_file_direct_read() 499 iocb->ki_pos += result; in nfs_file_direct_read() 912 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write() 924 pos = iocb->ki_pos; in nfs_file_direct_write() 970 iocb->ki_pos = pos + result; in nfs_file_direct_write()
|
D | file.c | 168 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() 632 if (iocb->ki_pos > i_size_read(inode)) in nfs_file_write() 640 result = generic_perform_write(file, from, iocb->ki_pos); in nfs_file_write() 648 iocb->ki_pos += written; in nfs_file_write()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/iomap/ |
D | direct-io.c | 84 loff_t offset = iocb->ki_pos; in iomap_dio_complete() 96 iocb->ki_pos += ret; in iomap_dio_complete() 428 loff_t pos = iocb->ki_pos; in __iomap_dio_rw() 429 loff_t end = iocb->ki_pos + count - 1, ret = 0; in __iomap_dio_rw()
|
/kernel/linux/linux-5.10/fs/pstore/ |
D | blk.c | 306 kiocb.ki_pos = pos; in psblk_generic_blk_read() 335 kiocb.ki_pos = pos; in psblk_generic_blk_write() 348 kiocb.ki_pos += ret; in psblk_generic_blk_write()
|
/kernel/linux/linux-5.10/mm/ |
D | filemap.c | 2196 loff_t *ppos = &iocb->ki_pos; in generic_file_buffered_read() 2523 if (filemap_range_has_page(mapping, iocb->ki_pos, in generic_file_read_iter() 2524 iocb->ki_pos + count - 1)) in generic_file_read_iter() 2528 iocb->ki_pos, in generic_file_read_iter() 2529 iocb->ki_pos + count - 1); in generic_file_read_iter() 2538 iocb->ki_pos += retval; in generic_file_read_iter() 2552 if (retval < 0 || !count || iocb->ki_pos >= size || in generic_file_read_iter() 3194 loff_t pos = iocb->ki_pos; in generic_file_direct_write() 3262 iocb->ki_pos = pos; in generic_file_direct_write() 3430 status = generic_perform_write(file, from, pos = iocb->ki_pos); in __generic_file_write_iter() [all …]
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
D | file.c | 284 orig_iocb->ki_pos = iocb->ki_pos; in ovl_aio_cleanup_handler() 320 ret = vfs_iter_read(real.file, iter, &iocb->ki_pos, in ovl_read_iter() 385 ret = vfs_iter_write(real.file, iter, &iocb->ki_pos, in ovl_write_iter()
|
/kernel/linux/linux-5.10/fs/kernfs/ |
D | file.c | 213 len = ops->read(of, buf, len, iocb->ki_pos); in kernfs_file_read_iter() 228 iocb->ki_pos += len; in kernfs_file_read_iter() 296 len = ops->write(of, buf, len, iocb->ki_pos); in kernfs_fop_write_iter() 304 iocb->ki_pos += len; in kernfs_fop_write_iter()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | file.c | 817 loff_t offset = iocb->ki_pos; in gfs2_file_direct_write() 910 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter() 957 iocb->ki_pos += buffered; in gfs2_file_write_iter() 960 (iocb->ki_pos - buffered) >> PAGE_SHIFT, in gfs2_file_write_iter() 961 (iocb->ki_pos - 1) >> PAGE_SHIFT); in gfs2_file_write_iter() 969 iocb->ki_pos += ret; in gfs2_file_write_iter()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | file_local.c | 96 return hmdfs_do_read_iter(iocb->ki_filp, iter, &iocb->ki_pos); in hmdfs_local_read_iter() 144 return hmdfs_do_write_iter(iocb->ki_filp, iter, &iocb->ki_pos); in hmdfs_local_write_iter()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | dax.c | 725 ((iocb->ki_pos) >= i_size_read(inode) || in file_extending_write() 726 (iocb->ki_pos + iov_iter_count(from) > i_size_read(inode)))); in file_extending_write() 735 ret = fuse_direct_io(&io, from, &iocb->ki_pos, FUSE_DIO_WRITE); in fuse_dax_direct_write() 740 fuse_write_update_size(inode, iocb->ki_pos); in fuse_dax_direct_write()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | file.c | 2362 int append_write = ((iocb->ki_pos + count) >= in ocfs2_file_write_iter() 2433 ret = ocfs2_prepare_inode_for_write(file, iocb->ki_pos, count, !nowait); in ocfs2_file_write_iter() 2441 ocfs2_is_io_unaligned(inode, count, iocb->ki_pos)) { in ocfs2_file_write_iter() 2474 iocb->ki_pos - written, in ocfs2_file_write_iter() 2475 iocb->ki_pos - 1); in ocfs2_file_write_iter() 2487 iocb->ki_pos - written, in ocfs2_file_write_iter() 2488 iocb->ki_pos - 1); in ocfs2_file_write_iter()
|