Lines Matching refs:pos
316 u64 pos, this_len; in striped_read() local
327 pos = off; in striped_read()
336 page_align = (pos - io_align + buf_align) & ~PAGE_MASK; in striped_read()
338 page_align = pos & ~PAGE_MASK; in striped_read()
341 &ci->i_layout, pos, &this_len, in striped_read()
349 dout("striped_read %llu~%u (read %u) got %d%s%s\n", pos, left, read, in striped_read()
355 if (read < pos - off) { in striped_read()
356 dout(" zero gap %llu to %llu\n", off + read, pos); in striped_read()
358 pos - off - read, pages); in striped_read()
360 pos += ret; in striped_read()
361 read = pos - off; in striped_read()
373 if (pos + left > inode->i_size) in striped_read()
377 if (left > 0 && pos < inode->i_size) { in striped_read()
378 if (pos + left > inode->i_size) in striped_read()
379 left = inode->i_size - pos; in striped_read()
490 size_t left, loff_t pos, loff_t *ppos) in ceph_sync_write() argument
514 dout("sync_write on file %p %lld~%u %s\n", file, pos, in ceph_sync_write()
517 ret = filemap_write_and_wait_range(inode->i_mapping, pos, pos + left); in ceph_sync_write()
522 pos >> PAGE_CACHE_SHIFT, in ceph_sync_write()
523 (pos + left) >> PAGE_CACHE_SHIFT); in ceph_sync_write()
540 io_align = pos & ~PAGE_MASK; in ceph_sync_write()
547 vino, pos, &len, num_ops, in ceph_sync_write()
568 truncate_inode_pages_range(inode->i_mapping, pos, in ceph_sync_write()
569 (pos+len) | (PAGE_CACHE_SIZE-1)); in ceph_sync_write()
576 ret = ceph_copy_user_to_page_vector(pages, data, pos, len); in ceph_sync_write()
593 ceph_osdc_build_request(req, pos, snapc, vino.snap, &mtime); in ceph_sync_write()
607 pos += len; in ceph_sync_write()
615 *ppos = pos; in ceph_sync_write()
616 if (pos > i_size_read(inode)) in ceph_sync_write()
617 check_caps = ceph_inode_set_size(inode, pos); in ceph_sync_write()
633 unsigned long nr_segs, loff_t pos) in ceph_aio_read() argument
647 inode, ceph_vinop(inode), pos, (unsigned)len, inode); in ceph_aio_read()
657 inode, ceph_vinop(inode), pos, (unsigned)len, in ceph_aio_read()
667 ret = generic_file_aio_read(iocb, iov, nr_segs, pos); in ceph_aio_read()
704 unsigned long nr_segs, loff_t pos) in ceph_aio_write() argument
730 err = generic_write_checks(file, &pos, &count, S_ISBLK(inode->i_mode)); in ceph_aio_write()
752 inode, ceph_vinop(inode), pos, count, inode->i_size); in ceph_aio_write()
758 err = ceph_get_caps(ci, CEPH_CAP_FILE_WR, want, &got, pos + count); in ceph_aio_write()
763 inode, ceph_vinop(inode), pos, count, ceph_cap_string(got)); in ceph_aio_write()
771 pos, &iocb->ki_pos); in ceph_aio_write()
774 pos, &iocb->ki_pos, in ceph_aio_write()
790 inode, ceph_vinop(inode), pos, (unsigned)iov->iov_len, in ceph_aio_write()
797 err = vfs_fsync_range(file, pos, pos + written - 1, 1); in ceph_aio_write()
804 inode, ceph_vinop(inode), pos, (unsigned)iov->iov_len); in ceph_aio_write()