| /fs/btrfs/ |
| A D | ordered-data.c | 28 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end() 47 if (file_offset < entry->file_offset) in tree_insert() 78 if (file_offset < entry->file_offset) in __tree_search() 117 if (file_offset + len <= entry->file_offset || in btrfs_range_overlaps() 118 entry->file_offset + entry->num_bytes <= file_offset) in btrfs_range_overlaps() 137 if (in_range(file_offset, entry->file_offset, entry->num_bytes)) in ordered_tree_search() 181 entry->file_offset = file_offset; in alloc_ordered_extent() 1015 if (entry->file_offset >= file_offset + len) { in btrfs_lookup_ordered_range() 1113 if (file_offset < entry->file_offset) { in btrfs_lookup_first_ordered_range() 1132 if (entry->file_offset < file_offset) { in btrfs_lookup_first_ordered_range() [all …]
|
| A D | ordered-data.h | 100 u64 file_offset; member 167 struct folio *folio, u64 file_offset, u64 len, 170 struct folio *folio, u64 file_offset, 174 u64 file_offset, u64 io_size); 189 struct btrfs_inode *inode, u64 file_offset, 194 u64 file_offset); 204 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset); 206 struct btrfs_inode *inode, u64 file_offset, u64 len); 209 u64 file_offset,
|
| A D | reflink.c | 55 const u64 file_offset, in copy_inline_to_page() argument 63 const u64 range_end = file_offset + block_size - 1; in copy_inline_to_page() 71 ASSERT(IS_ALIGNED(file_offset, block_size)); in copy_inline_to_page() 84 folio = __filemap_get_folio(mapping, file_offset >> PAGE_SHIFT, in copy_inline_to_page() 96 btrfs_clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page() 120 offset_in_folio(folio, file_offset), in copy_inline_to_page() 142 btrfs_folio_set_uptodate(fs_info, folio, file_offset, block_size); in copy_inline_to_page() 143 btrfs_folio_clear_checked(fs_info, folio, file_offset, block_size); in copy_inline_to_page() 144 btrfs_folio_set_dirty(fs_info, folio, file_offset, block_size); in copy_inline_to_page() 151 btrfs_delalloc_release_space(inode, data_reserved, file_offset, in copy_inline_to_page() [all …]
|
| A D | direct-io.c | 24 u64 file_offset; member 654 dip->file_offset, dip->bytes, bio->bi_status); in btrfs_dio_end_io() 659 dip->file_offset, dip->bytes, in btrfs_dio_end_io() 662 btrfs_unlock_dio_extent(&inode->io_tree, dip->file_offset, in btrfs_dio_end_io() 663 dip->file_offset + dip->bytes - 1, NULL); in btrfs_dio_end_io() 694 ret = btrfs_split_extent_map(bbio->inode, bbio->file_offset, in btrfs_extract_ordered_extent() 709 loff_t file_offset) in btrfs_dio_submit_io() argument 719 bbio->file_offset = file_offset; in btrfs_dio_submit_io() 721 dip->file_offset = file_offset; in btrfs_dio_submit_io() 739 file_offset, dip->bytes, in btrfs_dio_submit_io()
|
| A D | bio.c | 90 bbio->file_offset = orig_bbio->file_offset; in btrfs_split_bio() 91 orig_bbio->file_offset += map_length; in btrfs_split_bio() 187 repair_bbio->file_offset, fs_info->sectorsize, in btrfs_end_repair_bio() 219 failed_bbio->file_offset + bio_offset); in repair_one_sector() 245 repair_bbio->file_offset = failed_bbio->file_offset + bio_offset; in repair_one_sector() 786 ASSERT(bbio->inode || bbio->file_offset == 0); in btrfs_submit_bbio()
|
| A D | compression.c | 72 bbio->file_offset = start; in alloc_compressed_bio() 381 ASSERT(IS_ALIGNED(ordered->file_offset, fs_info->sectorsize)); in btrfs_submit_compressed_write() 384 cb = alloc_compressed_bio(inode, ordered->file_offset, in btrfs_submit_compressed_write() 387 cb->start = ordered->file_offset; in btrfs_submit_compressed_write() 420 u64 cur = cb->orig_bbio->file_offset + orig_bio->bi_iter.bi_size; in add_ra_bio_pages() 573 u64 file_offset = bbio->file_offset; in btrfs_submit_compressed_read() local 584 em = btrfs_lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read() 594 cb = alloc_compressed_bio(inode, file_offset, REQ_OP_READ, in btrfs_submit_compressed_read()
|
| A D | extent_io.c | 637 u64 disk_bytenr, loff_t file_offset) in btrfs_bio_is_contig() argument 660 u64 disk_bytenr, u64 file_offset) in alloc_new_bio() argument 670 bbio->file_offset = file_offset; in alloc_new_bio() 673 bio_ctrl->next_file_offset = file_offset; in alloc_new_bio() 682 ordered->file_offset + in alloc_new_bio() 683 ordered->disk_num_bytes - file_offset); in alloc_new_bio() 715 loff_t file_offset = folio_pos(folio) + pg_offset; in submit_extent_folio() local 751 file_offset += len; in submit_extent_folio() 1172 u64 cur = max(start, ordered->file_offset); in can_skip_ordered_extent() 2124 bbio->file_offset = eb->start; in write_one_eb() [all …]
|
| A D | bio.h | 40 u64 file_offset; member
|
| A D | file.c | 932 ordered->file_offset + ordered->num_bytes > start_pos && in lock_and_cleanup_extent_if_need() 933 ordered->file_offset <= last_pos) { in lock_and_cleanup_extent_if_need() 2325 key.offset = extent_info->file_offset; in btrfs_insert_replace_extent() 2343 ret = btrfs_inode_set_file_extent_range(inode, extent_info->file_offset, in btrfs_insert_replace_extent() 2362 extent_info->file_offset, in btrfs_insert_replace_extent() 2375 ref_offset = extent_info->file_offset - extent_info->data_offset; in btrfs_insert_replace_extent() 2508 drop_args.drop_end > extent_info->file_offset) { in btrfs_replace_file_extents() 2510 extent_info->file_offset; in btrfs_replace_file_extents() 2521 extent_info->file_offset += replace_len; in btrfs_replace_file_extents() 3357 oe_start = max(oe->file_offset, start); in find_delalloc_subrange() [all …]
|
| A D | file-item.c | 431 u64 file_offset = bbio->file_offset + bio_offset; in btrfs_lookup_bio_sums() local 433 btrfs_set_extent_bit(&inode->io_tree, file_offset, in btrfs_lookup_bio_sums() 434 file_offset + sectorsize - 1, in btrfs_lookup_bio_sums()
|
| A D | inode.c | 3066 oe->file_offset, &stack_fi, in insert_ordered_extent_file_extent() 3092 start = ordered_extent->file_offset; in btrfs_finish_one_ordered() 3178 ordered_extent->file_offset, in btrfs_finish_one_ordered() 3179 ordered_extent->file_offset + in btrfs_finish_one_ordered() 3367 u64 file_offset = bbio->file_offset + bio_offset; in btrfs_data_csum_ok() local 7505 if (ordered->file_offset > cur) { in btrfs_invalidate_folio() 7549 cur - ordered->file_offset); in btrfs_invalidate_folio() 8924 u64 file_offset) in insert_prealloc_file_extent() argument 8951 file_offset, &stack_fi, in insert_prealloc_file_extent() 8962 extent_info.file_offset = file_offset; in insert_prealloc_file_extent() [all …]
|
| A D | fiemap.c | 370 u64 file_offset) in fiemap_search_slot() argument 381 key.offset = file_offset; in fiemap_search_slot()
|
| A D | ctree.h | 394 u64 file_offset; member
|
| A D | zoned.c | 1865 em = btrfs_search_extent_mapping(em_tree, ordered->file_offset, in btrfs_rewrite_logical_zoned() 1880 btrfs_split_extent_map(ordered->inode, ordered->file_offset, in btrfs_zoned_split_ordered()
|
| A D | tree-log.c | 4644 const u64 ordered_end = ordered->file_offset + ordered->num_bytes; in log_extent_csums() 4653 if (mod_end <= ordered->file_offset) in log_extent_csums() 4661 if (ordered->file_offset > mod_start) { in log_extent_csums() 4663 mod_len = ordered->file_offset - mod_start; in log_extent_csums()
|
| /fs/ceph/ |
| A D | ioctl.h | 57 __u64 file_offset; /* in+out: file offset */ member
|
| A D | ioctl.c | 199 ceph_calc_file_object_mapping(&ci->i_layout, dl.file_offset, 1, in ceph_ioctl_get_dataloc() 201 dl.file_offset -= dl.object_offset; in ceph_ioctl_get_dataloc()
|
| A D | crypto.h | 46 __le64 file_offset; member
|
| A D | inode.c | 2424 header.file_offset = 0; in fill_fscrypt_truncate() 2428 header.file_offset = cpu_to_le64(orig_pos); in fill_fscrypt_truncate()
|
| /fs/bcachefs/ |
| A D | fs-io-pagecache.c | 610 loff_t file_offset = round_down(vmf->pgoff << PAGE_SHIFT, block_bytes(c)); in bch2_page_mkwrite() local 611 unsigned offset = file_offset - folio_pos(folio); in bch2_page_mkwrite() 632 if (folio->mapping != mapping || file_offset >= isize) { in bch2_page_mkwrite() 638 len = min_t(unsigned, len, isize - file_offset); in bch2_page_mkwrite()
|
| /fs/iomap/ |
| A D | ioend.c | 16 struct bio *bio, loff_t file_offset, u16 ioend_flags) in iomap_init_ioend() argument 26 ioend->io_offset = file_offset; in iomap_init_ioend()
|
| /fs/smb/client/ |
| A D | smb2ops.c | 3436 in_data.file_offset = cpu_to_le64(off); in smb3_simple_fallocate_range() 3469 if (off < le64_to_cpu(tmp_data->file_offset)) { in smb3_simple_fallocate_range() 3475 l = le64_to_cpu(tmp_data->file_offset) - off; in smb3_simple_fallocate_range() 3785 in_data.file_offset = cpu_to_le64(offset); in smb3_llseek() 3812 offset = le64_to_cpu(out_data->file_offset); in smb3_llseek() 3815 if (offset < le64_to_cpu(out_data->file_offset)) in smb3_llseek() 3818 offset = le64_to_cpu(out_data->file_offset) + le64_to_cpu(out_data->length); in smb3_llseek() 3845 in_data.file_offset = cpu_to_le64(start); in smb3_fiemap() 3878 le64_to_cpu(out_data[i].file_offset), in smb3_fiemap() 3879 le64_to_cpu(out_data[i].file_offset), in smb3_fiemap() [all …]
|
| /fs/xfs/ |
| A D | xfs_file.c | 641 loff_t file_offset) in xfs_dio_zoned_submit_io() argument 660 ioend = iomap_init_ioend(iter->inode, bio, file_offset, in xfs_dio_zoned_submit_io()
|
| /fs/smb/common/ |
| A D | smb2pdu.h | 1704 __le64 file_offset; member
|
| /fs/smb/server/ |
| A D | vfs.c | 1046 ranges[*out_count].file_offset = cpu_to_le64(extent_start); in ksmbd_vfs_fqar_lseek()
|