• Home
  • Raw
  • Download

Lines Matching refs:u64

31 	u64 start;
32 u64 bytes;
49 u64 offset) in __lookup_free_space_inode()
137 u64 ino, u64 offset) in __create_free_space_inode()
144 u64 flags = BTRFS_INODE_NOCOMPRESS | BTRFS_INODE_PREALLOC; in __create_free_space_inode()
200 u64 ino; in create_free_space_inode()
213 u64 needed_bytes; in btrfs_check_trunc_cache_free_space()
316 (num_pages * sizeof(u32) + sizeof(u64)) > PAGE_SIZE) in io_ctl_init()
414 static void io_ctl_set_generation(struct btrfs_io_ctl *io_ctl, u64 generation) in io_ctl_set_generation()
424 io_ctl->size -= sizeof(u64) + (sizeof(u32) * io_ctl->num_pages); in io_ctl_set_generation()
426 io_ctl->cur += sizeof(u64); in io_ctl_set_generation()
427 io_ctl->size -= sizeof(u64) * 2; in io_ctl_set_generation()
431 io_ctl->cur += sizeof(u64); in io_ctl_set_generation()
434 static int io_ctl_check_generation(struct btrfs_io_ctl *io_ctl, u64 generation) in io_ctl_check_generation()
436 u64 cache_gen; in io_ctl_check_generation()
444 io_ctl->size -= sizeof(u64) + in io_ctl_check_generation()
447 io_ctl->cur += sizeof(u64); in io_ctl_check_generation()
448 io_ctl->size -= sizeof(u64) * 2; in io_ctl_check_generation()
459 io_ctl->cur += sizeof(u64); in io_ctl_check_generation()
516 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry()
668 struct btrfs_path *path, u64 offset) in __load_free_space_cache()
677 u64 num_entries; in __load_free_space_cache()
678 u64 num_bitmaps; in __load_free_space_cache()
679 u64 generation; in __load_free_space_cache()
853 u64 used = block_group->used; in load_free_space_cache()
1022 struct btrfs_path *path, u64 offset, in update_cache_item()
1077 u64 start, extent_start, extent_end, len; in write_pinned_extent_entries()
1143 ret = btrfs_wait_ordered_range(inode, 0, (u64)-1); in flush_dirty_cache()
1174 struct btrfs_path *path, u64 offset) in __btrfs_wait_cache_io()
1364 ret = btrfs_fdatawrite_range(inode, 0, (u64)-1); in __btrfs_write_out_cache()
1437 static inline unsigned long offset_to_bit(u64 bitmap_start, u32 unit, in offset_to_bit()
1438 u64 offset) in offset_to_bit()
1445 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits()
1450 static inline u64 offset_to_bitmap(struct btrfs_free_space_ctl *ctl, in offset_to_bitmap()
1451 u64 offset) in offset_to_bitmap()
1453 u64 bitmap_start; in offset_to_bitmap()
1454 u64 bytes_per_bitmap; in offset_to_bitmap()
1465 static int tree_insert_offset(struct rb_root *root, u64 offset, in tree_insert_offset()
1525 u64 offset, int bitmap_only, int fuzzy) in tree_search_offset()
1683 u64 max_bytes; in recalculate_thresholds()
1684 u64 bitmap_bytes; in recalculate_thresholds()
1685 u64 extent_bytes; in recalculate_thresholds()
1686 u64 size = block_group->length; in recalculate_thresholds()
1687 u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; in recalculate_thresholds()
1688 u64 max_bitmaps = div64_u64(size + bytes_per_bg - 1, bytes_per_bg); in recalculate_thresholds()
1690 max_bitmaps = max_t(u64, max_bitmaps, 1); in recalculate_thresholds()
1712 extent_bytes = min_t(u64, extent_bytes, max_bytes >> 1); in recalculate_thresholds()
1720 u64 offset, u64 bytes) in __bitmap_clear_bits()
1750 struct btrfs_free_space *info, u64 offset, in bitmap_clear_bits()
1751 u64 bytes) in bitmap_clear_bits()
1758 struct btrfs_free_space *info, u64 offset, in bitmap_set_bits()
1759 u64 bytes) in bitmap_set_bits()
1792 struct btrfs_free_space *bitmap_info, u64 *offset, in search_bitmap()
1793 u64 *bytes, bool for_alloc) in search_bitmap()
1813 max_t(u64, *offset, bitmap_info->offset)); in search_bitmap()
1834 *offset = (u64)(i * ctl->unit) + bitmap_info->offset; in search_bitmap()
1835 *bytes = (u64)(found_bits) * ctl->unit; in search_bitmap()
1839 *bytes = (u64)(max_bits) * ctl->unit; in search_bitmap()
1844 static inline u64 get_max_extent_size(struct btrfs_free_space *entry) in get_max_extent_size()
1853 find_free_space(struct btrfs_free_space_ctl *ctl, u64 *offset, u64 *bytes, in find_free_space()
1854 unsigned long align, u64 *max_extent_size) in find_free_space()
1858 u64 tmp; in find_free_space()
1859 u64 align_off; in find_free_space()
1897 u64 size = *bytes; in find_free_space()
1924 u64 bytes = bitmap_info->bytes; in count_bitmap_extents()
1944 struct btrfs_free_space *info, u64 offset) in add_new_bitmap()
1980 u64 *offset, u64 *bytes) in remove_from_bitmap()
1982 u64 end; in remove_from_bitmap()
1983 u64 search_start, search_bytes; in remove_from_bitmap()
1987 end = bitmap_info->offset + (u64)(BITS_PER_BITMAP * ctl->unit) - 1; in remove_from_bitmap()
2055 static u64 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl, in add_bytes_to_bitmap()
2056 struct btrfs_free_space *info, u64 offset, in add_bytes_to_bitmap()
2057 u64 bytes, enum btrfs_trim_state trim_state) in add_bytes_to_bitmap()
2059 u64 bytes_to_set = 0; in add_bytes_to_bitmap()
2060 u64 end; in add_bytes_to_bitmap()
2075 end = info->offset + (u64)(BITS_PER_BITMAP * ctl->unit); in add_bytes_to_bitmap()
2152 u64 bytes, offset, bytes_added; in insert_into_bitmap()
2290 u64 offset = info->offset; in try_merge_free_space()
2291 u64 bytes = info->bytes; in try_merge_free_space()
2342 const u64 end = info->offset + info->bytes; in steal_from_bitmap_to_end()
2343 const u64 bitmap_offset = offset_to_bitmap(ctl, end); in steal_from_bitmap_to_end()
2344 u64 bytes; in steal_from_bitmap_to_end()
2377 u64 bitmap_offset; in steal_from_bitmap_to_front()
2381 u64 bytes; in steal_from_bitmap_to_front()
2467 u64 offset, u64 bytes, in __btrfs_add_free_space()
2473 u64 filter_bytes = bytes; in __btrfs_add_free_space()
2533 u64 bytenr, u64 size) in btrfs_add_free_space()
2551 u64 bytenr, u64 size) in btrfs_add_free_space_async_trimmed()
2565 u64 offset, u64 bytes) in btrfs_remove_free_space()
2602 u64 to_free = min(bytes, info->bytes); in btrfs_remove_free_space()
2617 u64 old_end = info->bytes + info->offset; in btrfs_remove_free_space()
2658 u64 bytes) in btrfs_dump_free_space()
2845 u64 btrfs_find_space_for_alloc(struct btrfs_block_group *block_group, in btrfs_find_space_for_alloc()
2846 u64 offset, u64 bytes, u64 empty_size, in btrfs_find_space_for_alloc()
2847 u64 *max_extent_size) in btrfs_find_space_for_alloc()
2853 u64 bytes_search = bytes + empty_size; in btrfs_find_space_for_alloc()
2854 u64 ret = 0; in btrfs_find_space_for_alloc()
2855 u64 align_gap = 0; in btrfs_find_space_for_alloc()
2856 u64 align_gap_len = 0; in btrfs_find_space_for_alloc()
2946 static u64 btrfs_alloc_from_bitmap(struct btrfs_block_group *block_group, in btrfs_alloc_from_bitmap()
2949 u64 bytes, u64 min_start, in btrfs_alloc_from_bitmap()
2950 u64 *max_extent_size) in btrfs_alloc_from_bitmap()
2954 u64 search_start = cluster->window_start; in btrfs_alloc_from_bitmap()
2955 u64 search_bytes = bytes; in btrfs_alloc_from_bitmap()
2956 u64 ret = 0; in btrfs_alloc_from_bitmap()
2979 u64 btrfs_alloc_from_cluster(struct btrfs_block_group *block_group, in btrfs_alloc_from_cluster()
2980 struct btrfs_free_cluster *cluster, u64 bytes, in btrfs_alloc_from_cluster()
2981 u64 min_start, u64 *max_extent_size) in btrfs_alloc_from_cluster()
2988 u64 ret = 0; in btrfs_alloc_from_cluster()
3079 u64 offset, u64 bytes, in btrfs_bitmap_cluster()
3080 u64 cont1_bytes, u64 min_bytes) in btrfs_bitmap_cluster()
3094 max_t(u64, offset, entry->offset)); in btrfs_bitmap_cluster()
3122 entry->max_extent_size = (u64)max_bits * ctl->unit; in btrfs_bitmap_cluster()
3160 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_no_bitmap()
3161 u64 cont1_bytes, u64 min_bytes) in setup_cluster_no_bitmap()
3168 u64 window_free; in setup_cluster_no_bitmap()
3169 u64 max_extent; in setup_cluster_no_bitmap()
3170 u64 total_size = 0; in setup_cluster_no_bitmap()
3251 struct list_head *bitmaps, u64 offset, u64 bytes, in setup_cluster_bitmap()
3252 u64 cont1_bytes, u64 min_bytes) in setup_cluster_bitmap()
3257 u64 bitmap_offset = offset_to_bitmap(ctl, offset); in setup_cluster_bitmap()
3301 u64 offset, u64 bytes, u64 empty_size) in btrfs_find_space_cluster()
3307 u64 min_bytes; in btrfs_find_space_cluster()
3308 u64 cont1_bytes; in btrfs_find_space_cluster()
3391 u64 *total_trimmed, u64 start, u64 bytes, in do_trimming()
3392 u64 reserved_start, u64 reserved_bytes, in do_trimming()
3401 const u64 end = start + bytes; in do_trimming()
3402 const u64 reserved_end = reserved_start + reserved_bytes; in do_trimming()
3404 u64 trimmed = 0; in do_trimming()
3452 u64 *total_trimmed, u64 start, u64 end, u64 minlen, in trim_no_bitmap()
3461 u64 extent_start; in trim_no_bitmap()
3462 u64 extent_bytes; in trim_no_bitmap()
3464 u64 bytes; in trim_no_bitmap()
3465 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_no_bitmap()
3585 static void reset_trimming_bitmap(struct btrfs_free_space_ctl *ctl, u64 offset) in reset_trimming_bitmap()
3618 u64 *total_trimmed, u64 start, u64 end, u64 minlen, in trim_bitmaps()
3619 u64 maxlen, bool async) in trim_bitmaps()
3627 u64 bytes; in trim_bitmaps()
3628 u64 offset = offset_to_bitmap(ctl, start); in trim_bitmaps()
3629 const u64 max_discard_size = READ_ONCE(discard_ctl->max_discard_size); in trim_bitmaps()
3762 u64 *trimmed, u64 start, u64 end, u64 minlen) in btrfs_trim_block_group()
3766 u64 rem = 0; in btrfs_trim_block_group()
3793 u64 *trimmed, u64 start, u64 end, u64 minlen, in btrfs_trim_block_group_extents()
3815 u64 *trimmed, u64 start, u64 end, u64 minlen, in btrfs_trim_block_group_bitmaps()
3816 u64 maxlen, bool async) in btrfs_trim_block_group_bitmaps()
3845 u64 btrfs_find_ino_for_alloc(struct btrfs_root *fs_root) in btrfs_find_ino_for_alloc()
3849 u64 ino = 0; in btrfs_find_ino_for_alloc()
3870 u64 offset = 0; in btrfs_find_ino_for_alloc()
3871 u64 count = 1; in btrfs_find_ino_for_alloc()
3927 u64 root_gen = btrfs_root_generation(&root->root_item); in load_free_ino_cache()
4010 u64 offset, u64 bytes, bool bitmap) in test_add_free_space_entry()
4016 u64 bytes_added; in test_add_free_space_entry()
4080 u64 offset, u64 bytes) in test_check_exists()
4097 u64 bit_off, bit_bytes; in test_check_exists()