Home
last modified time | relevance | path

Searched refs:ki_pos (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.6.21/fs/coda/
Dfile.c46 loff_t ki_pos = iocb->ki_pos; in coda_file_read_iter() local
52 count, ki_pos, CODA_ACCESS_TYPE_READ); in coda_file_read_iter()
56 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter()
61 count, ki_pos, CODA_ACCESS_TYPE_READ_FINISH); in coda_file_read_iter()
72 loff_t ki_pos = iocb->ki_pos; in coda_file_write_iter() local
78 count, ki_pos, CODA_ACCESS_TYPE_WRITE); in coda_file_write_iter()
84 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter()
94 count, ki_pos, CODA_ACCESS_TYPE_WRITE_FINISH); in coda_file_write_iter()
106 loff_t ki_pos = *ppos; in coda_file_splice_read() local
111 len, ki_pos, CODA_ACCESS_TYPE_READ); in coda_file_splice_read()
[all …]
/linux-6.6.21/fs/configfs/
Dfile.c93 __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-6.6.21/drivers/gpu/drm/display/
Ddrm_dp_aux_dev.c149 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-6.6.21/fs/ext2/
Dfile.c69 if (ret > 0 && iocb->ki_pos > i_size_read(inode)) { in ext2_dax_write_iter()
70 i_size_write(inode, iocb->ki_pos); in ext2_dax_write_iter()
184 loff_t pos = iocb->ki_pos; in ext2_dio_write_end_io()
219 loff_t offset = iocb->ki_pos; in ext2_dio_write_iter()
234 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(inode) || in ext2_dio_write_iter()
235 (!IS_ALIGNED(iocb->ki_pos | iov_iter_alignment(from), blocksize))) in ext2_dio_write_iter()
254 pos = iocb->ki_pos; in ext2_dio_write_iter()
Dtrace.h28 __entry->pos = iocb->ki_pos;
72 __entry->pos = iocb->ki_pos;
/linux-6.6.21/fs/9p/
Dvfs_file.c359 fid->fid, iov_iter_count(to), iocb->ki_pos); in v9fs_file_read_iter()
367 ret = p9_client_read_once(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter()
369 ret = p9_client_read(fid, iocb->ki_pos, to, &err); in v9fs_file_read_iter()
373 iocb->ki_pos += ret; in v9fs_file_read_iter()
425 origin = iocb->ki_pos; in v9fs_file_write_iter()
426 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter()
437 iocb->ki_pos += retval; in v9fs_file_write_iter()
439 if (iocb->ki_pos > i_size) { in v9fs_file_write_iter()
440 inode_add_bytes(inode, iocb->ki_pos - i_size); in v9fs_file_write_iter()
445 v9fs_i_size_write(inode, iocb->ki_pos); in v9fs_file_write_iter()
/linux-6.6.21/fs/zonefs/
Dfile.c369 if (i_size_read(inode) < iocb->ki_pos + size) { in zonefs_file_write_dio_end_io()
370 zonefs_update_stats(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io()
371 zonefs_i_size_write(inode, iocb->ki_pos + size); in zonefs_file_write_dio_end_io()
433 iocb->ki_pos = z->z_wpoffset; in zonefs_write_checks()
437 count = zonefs_write_check_limits(file, iocb->ki_pos, in zonefs_write_checks()
486 if ((iocb->ki_pos | count) & (sb->s_blocksize - 1)) { in zonefs_file_dio_write()
494 if (iocb->ki_pos != z->z_wpoffset) { in zonefs_file_dio_write()
589 if (iocb->ki_pos >= z->z_capacity) in zonefs_file_write_iter()
630 if (iocb->ki_pos >= z->z_capacity) in zonefs_file_read_iter()
643 if (iocb->ki_pos >= isize) { in zonefs_file_read_iter()
[all …]
/linux-6.6.21/fs/ceph/
Dfile.c960 ssize_t __ceph_sync_read(struct inode *inode, loff_t *ki_pos, in __ceph_sync_read() argument
968 u64 off = *ki_pos; in __ceph_sync_read()
974 dout("sync_read on inode %p %llx~%llx\n", inode, *ki_pos, len); in __ceph_sync_read()
1140 if (off > *ki_pos) { in __ceph_sync_read()
1143 ret = i_size - *ki_pos; in __ceph_sync_read()
1144 *ki_pos = i_size; in __ceph_sync_read()
1146 ret = off - *ki_pos; in __ceph_sync_read()
1147 *ki_pos = off; in __ceph_sync_read()
1164 dout("sync_read on file %p %llx~%zx %s\n", file, iocb->ki_pos, in ceph_sync_read()
1167 return __ceph_sync_read(inode, &iocb->ki_pos, to, retry_op, NULL); in ceph_sync_read()
[all …]
/linux-6.6.21/block/
Dfops.c51 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_simple()
139 iocb->ki_pos += ret; in blkdev_bio_end_io()
171 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO()
286 iocb->ki_pos += ret; in blkdev_bio_end_io_async()
310 loff_t pos = iocb->ki_pos; in __blkdev_direct_IO_async()
624 iocb->ki_pos += written; in blkdev_direct_write()
662 if (iocb->ki_pos >= size) in blkdev_write_iter()
668 size -= iocb->ki_pos; in blkdev_write_iter()
697 loff_t pos = iocb->ki_pos; in blkdev_read_iter()
722 iocb->ki_pos += ret; in blkdev_read_iter()
/linux-6.6.21/fs/ext4/
Dfile.c66 return IS_ALIGNED(iocb->ki_pos | iov_iter_alignment(iter), dio_align); in ext4_should_use_dio()
263 if (iocb->ki_pos >= sbi->s_bitmap_maxbytes) in ext4_generic_write_checks()
265 iov_iter_truncate(from, sbi->s_bitmap_maxbytes - iocb->ki_pos); in ext4_generic_write_checks()
377 loff_t pos = iocb->ki_pos; in ext4_dio_write_end_io()
437 offset = iocb->ki_pos; in ext4_dio_write_checks()
503 loff_t offset = iocb->ki_pos; in ext4_dio_write_iter()
556 offset = iocb->ki_pos; in ext4_dio_write_iter()
602 offset = iocb->ki_pos; in ext4_dio_write_iter()
649 offset = iocb->ki_pos; in ext4_dax_write_iter()
/linux-6.6.21/fs/xfs/
Dxfs_file.c446 if (iocb->ki_pos <= i_size_read(inode)) in xfs_file_write_checks()
451 if (iocb->ki_pos > isize) { in xfs_file_write_checks()
477 trace_xfs_zero_eof(ip, isize, iocb->ki_pos - isize); in xfs_file_write_checks()
478 error = xfs_zero_range(ip, isize, iocb->ki_pos - isize, NULL); in xfs_file_write_checks()
497 loff_t offset = iocb->ki_pos; in xfs_dio_write_end_io()
650 if (iocb->ki_pos > isize || iocb->ki_pos + count >= isize) { in xfs_file_dio_write_unaligned()
716 if ((iocb->ki_pos | count) & target->bt_logical_sectormask) in xfs_file_dio_write()
718 if ((iocb->ki_pos | count) & ip->i_mount->m_blockmask) in xfs_file_dio_write()
741 pos = iocb->ki_pos; in xfs_file_dax_write()
745 if (ret > 0 && iocb->ki_pos > i_size_read(inode)) { in xfs_file_dax_write()
[all …]
/linux-6.6.21/fs/nfs/
Dfile.c167 iov_iter_count(to), (unsigned long) iocb->ki_pos); in nfs_file_read()
654 file, iov_iter_count(from), (long long) iocb->ki_pos); in nfs_file_write()
661 if (iocb->ki_flags & IOCB_APPEND || iocb->ki_pos > i_size_read(inode)) { in nfs_file_write()
683 iocb->ki_pos - written, in nfs_file_write()
684 iocb->ki_pos - 1); in nfs_file_write()
690 iocb->ki_pos - written, in nfs_file_write()
691 iocb->ki_pos - 1); in nfs_file_write()
Ddirect.c430 file, count, (long long) iocb->ki_pos); in nfs_file_direct_read()
445 dreq->io_start = iocb->ki_pos; in nfs_file_direct_read()
464 requested = nfs_direct_read_schedule_iovec(dreq, iter, iocb->ki_pos); in nfs_file_direct_read()
473 iocb->ki_pos += result; in nfs_file_direct_read()
961 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
973 pos = iocb->ki_pos; in nfs_file_direct_write()
1019 iocb->ki_pos = pos + result; in nfs_file_direct_write()
/linux-6.6.21/mm/
Dfilemap.c2458 if (filemap_range_uptodate(mapping, iocb->ki_pos, count, folio, in filemap_update_page()
2541 pgoff_t index = iocb->ki_pos >> PAGE_SHIFT; in filemap_get_pages()
2547 last_index = DIV_ROUND_UP(iocb->ki_pos + count, PAGE_SIZE); in filemap_get_pages()
2564 iocb->ki_pos >> PAGE_SHIFT, fbatch); in filemap_get_pages()
2630 if (unlikely(iocb->ki_pos >= inode->i_sb->s_maxbytes)) in filemap_read()
2649 if (unlikely(iocb->ki_pos >= i_size_read(inode))) in filemap_read()
2665 if (unlikely(iocb->ki_pos >= isize)) in filemap_read()
2667 end_offset = min_t(loff_t, isize, iocb->ki_pos + iter->count); in filemap_read()
2688 if (!pos_same_folio(iocb->ki_pos, last_pos - 1, in filemap_read()
2695 size_t offset = iocb->ki_pos & (fsize - 1); in filemap_read()
[all …]
Dpage_io.c305 sio->iocb.ki_pos + sio->len != pos) { in swap_writepage_fs()
314 sio->iocb.ki_pos = pos; in swap_writepage_fs()
436 sio->iocb.ki_pos + sio->len != pos) { in swap_readpage_fs()
444 sio->iocb.ki_pos = pos; in swap_readpage_fs()
/linux-6.6.21/fs/
Dread_write.c386 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 …]
Dseq_file.c161 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-6.6.21/io_uring/
Drw.c82 rw->kiocb.ki_pos = READ_ONCE(sqe->off); in io_prep_rw()
158 if (rw->kiocb.ki_pos != -1) in io_kiocb_update_pos()
159 return &rw->kiocb.ki_pos; in io_kiocb_update_pos()
163 rw->kiocb.ki_pos = req->file->f_pos; in io_kiocb_update_pos()
164 return &rw->kiocb.ki_pos; in io_kiocb_update_pos()
167 rw->kiocb.ki_pos = 0; in io_kiocb_update_pos()
343 req->file->f_pos = rw->kiocb.ki_pos; in kiocb_done()
429 return (kiocb->ki_filp->f_mode & FMODE_STREAM) ? NULL : &kiocb->ki_pos; in io_kiocb_ppos()
949 trace_io_uring_short_write(req->ctx, kiocb->ki_pos - ret2, in io_write()
/linux-6.6.21/fs/ntfs3/
Dfile.c848 loff_t pos = iocb->ki_pos; in ntfs_compress_write()
1054 iocb->ki_pos += written; in ntfs_compress_write()
1055 if (iocb->ki_pos > ni->i_valid) in ntfs_compress_write()
1056 ni->i_valid = iocb->ki_pos; in ntfs_compress_write()
1057 if (iocb->ki_pos > i_size) in ntfs_compress_write()
1058 i_size_write(inode, iocb->ki_pos); in ntfs_compress_write()
1115 ret = ntfs_extend(inode, iocb->ki_pos, ret, file); in ntfs_file_write_iter()
/linux-6.6.21/fs/cachefiles/
Dio.c139 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()
307 ki->iocb.ki_pos = start_pos; in __cachefiles_write()
327 trace_cachefiles_write(object, file_inode(file), ki->iocb.ki_pos, len); in __cachefiles_write()
/linux-6.6.21/fs/overlayfs/
Dfile.c299 orig_iocb->ki_pos = iocb->ki_pos; in ovl_aio_cleanup_handler()
334 ret = vfs_iter_read(real.file, iter, &iocb->ki_pos, in ovl_read_iter()
402 ret = vfs_iter_write(real.file, iter, &iocb->ki_pos, in ovl_write_iter()
/linux-6.6.21/fs/iomap/
Dtrace.h211 __entry->pos = iocb->ki_pos;
247 __entry->pos = iocb->ki_pos;
Ddirect-io.c87 loff_t offset = iocb->ki_pos; in iomap_dio_complete()
119 iocb->ki_pos += ret; in iomap_dio_complete()
547 .pos = iocb->ki_pos, in __iomap_dio_rw()
/linux-6.6.21/fs/kernfs/
Dfile.c251 len = ops->read(of, buf, len, iocb->ki_pos); in kernfs_file_read_iter()
266 iocb->ki_pos += len; in kernfs_file_read_iter()
334 len = ops->write(of, buf, len, iocb->ki_pos); in kernfs_fop_write_iter()
342 iocb->ki_pos += len; in kernfs_fop_write_iter()
/linux-6.6.21/arch/s390/hypfs/
Dinode.c149 loff_t pos = iocb->ki_pos; in hypfs_read_iter()
159 iocb->ki_pos = pos + count; in hypfs_read_iter()

123