Lines Matching refs:file_offset
521 u64 ino, u64 file_offset, u64 *next_offset) in lookup_data_extent() argument
528 ASSERT(IS_ALIGNED(file_offset, root->fs_info->sectorsize)); in lookup_data_extent()
531 key.offset = file_offset; in lookup_data_extent()
556 if (file_offset == 0) in lookup_data_extent()
564 if (key.offset <= file_offset && key.offset + in lookup_data_extent()
565 btrfs_file_extent_num_bytes(path->nodes[0], fi) > file_offset) in lookup_data_extent()
586 if (key.offset > file_offset) { in lookup_data_extent()
591 if (key.offset <= file_offset && key.offset + in lookup_data_extent()
592 btrfs_file_extent_num_bytes(path->nodes[0], fi) > file_offset) in lookup_data_extent()
649 int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len, in btrfs_file_read() argument
656 u64 aligned_start = round_down(file_offset, fs_info->sectorsize); in btrfs_file_read()
657 u64 aligned_end = round_down(file_offset + len, fs_info->sectorsize); in btrfs_file_read()
668 if (aligned_start != file_offset) { in btrfs_file_read()
677 ret = read_and_truncate_page(&path, fi, file_offset, in btrfs_file_read()
678 round_up(file_offset, fs_info->sectorsize) - in btrfs_file_read()
679 file_offset, dest); in btrfs_file_read()
730 dest + cur - file_offset); in btrfs_file_read()
737 if (file_offset + len != aligned_end) { in btrfs_file_read()
747 file_offset + len - aligned_end, in btrfs_file_read()
748 dest + aligned_end - file_offset); in btrfs_file_read()