Searched refs:free_space (Results 1 – 12 of 12) sorted by relevance
/fs/reiserfs/ |
D | lbalance.c | 315 int nr, free_space; in leaf_copy_items_entirely() local 339 free_space = blkh_free_space(blkh); in leaf_copy_items_entirely() 360 free_space -= (IH_SIZE * cpy_num); in leaf_copy_items_entirely() 361 set_blkh_free_space(blkh, free_space); in leaf_copy_items_entirely() 375 RFALSE(free_space < j - last_inserted_loc, in leaf_copy_items_entirely() 377 free_space, j - last_inserted_loc); in leaf_copy_items_entirely() 390 set_blkh_free_space(blkh, free_space - (j - last_inserted_loc)); in leaf_copy_items_entirely() 907 int nr, free_space; in leaf_insert_into_buf() local 916 free_space = blkh_free_space(blkh); in leaf_insert_into_buf() 919 RFALSE(free_space < ih_item_len(inserted_item_ih) + IH_SIZE, in leaf_insert_into_buf() [all …]
|
D | fix_node.c | 513 int free_space; in get_num_ver() local 515 free_space = max_node_size - total_node_size - IH_SIZE; in get_num_ver() 517 op_check_left(vi, free_space, start_bytes, in get_num_ver()
|
/fs/btrfs/tests/ |
D | free-space-tests.c | 404 if (cache->free_space_ctl->free_space != 0) { in check_cache_empty() 639 if (cache->free_space_ctl->free_space != (1 * 1024 * 1024 + 4096)) { in test_steal_space_from_bitmap_to_extent() 658 if (cache->free_space_ctl->free_space != 4096) { in test_steal_space_from_bitmap_to_extent() 836 if (cache->free_space_ctl->free_space != (1 * 1024 * 1024 + 8192)) { in test_steal_space_from_bitmap_to_extent() 855 if (cache->free_space_ctl->free_space != 8192) { in test_steal_space_from_bitmap_to_extent()
|
/fs/btrfs/ |
D | ctree.c | 3587 int free_space, u32 left_nritems, in __push_leaf_right() argument 3624 if (space + push_space * 2 > free_space) in __push_leaf_right() 3633 if (this_item_size + sizeof(*item) + push_space > free_space) in __push_leaf_right() 3740 int free_space; in push_leaf_right() local 3761 free_space = btrfs_leaf_free_space(root, right); in push_leaf_right() 3762 if (free_space < data_size) in push_leaf_right() 3771 free_space = btrfs_leaf_free_space(root, right); in push_leaf_right() 3772 if (free_space < data_size) in push_leaf_right() 3793 right, free_space, left_nritems, min_slot); in push_leaf_right() 3812 int free_space, u32 right_nritems, in __push_leaf_left() argument [all …]
|
D | free-space-cache.h | 33 u64 free_space; member
|
D | inode-map.c | 201 root->free_ino_ctl->free_space > 0); in btrfs_find_free_ino() 204 root->free_ino_ctl->free_space == 0) in btrfs_find_free_ino()
|
D | free-space-cache.c | 848 matched = (ctl->free_space == (block_group->key.offset - used - in load_free_space_cache() 1465 ctl->free_space -= info->bytes; in unlink_free_space() 1479 ctl->free_space += info->bytes; in link_free_space() 1552 ctl->free_space -= bytes; in bitmap_clear_bits() 1568 ctl->free_space += bytes; in bitmap_set_bits() 2598 ctl->free_space -= bytes; in btrfs_alloc_from_cluster() 2855 if (ctl->free_space < bytes) { in btrfs_find_space_cluster() 2967 if (ctl->free_space < minlen) { in trim_no_bitmap() 3041 if (ctl->free_space < minlen) { in trim_bitmaps()
|
D | file-item.c | 794 u32 free_space; in btrfs_csum_file_blocks() local 800 free_space = btrfs_leaf_free_space(root, leaf) - in btrfs_csum_file_blocks() 811 diff = min(free_space, diff); in btrfs_csum_file_blocks()
|
D | delayed-inode.c | 724 int free_space; in btrfs_batch_insert_items() local 739 free_space = btrfs_leaf_free_space(root, leaf); in btrfs_batch_insert_items() 749 free_space) { in btrfs_batch_insert_items()
|
D | extent-tree.c | 6310 (cache->free_space_ctl->free_space >= num_bytes)); in wait_block_group_cache_progress() 6730 block_group->free_space_ctl->free_space < in find_free_extent() 6732 if (block_group->free_space_ctl->free_space > in find_free_extent() 6735 block_group->free_space_ctl->free_space; in find_free_extent()
|
/fs/ocfs2/ |
D | dir.c | 3385 unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize; in ocfs2_find_dir_space_id() local 3392 free_space = ocfs2_dir_trailer_blk_off(sb) - i_size_read(dir); in ocfs2_find_dir_space_id() 3394 free_space = dir->i_sb->s_blocksize - i_size_read(dir); in ocfs2_find_dir_space_id() 3436 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space; in ocfs2_find_dir_space_id()
|
D | xattr.c | 1410 int free_space; in ocfs2_xa_check_space_helper() local 1415 free_space = free_start - in ocfs2_xa_check_space_helper() 1419 if (free_space < 0) in ocfs2_xa_check_space_helper() 1421 if (free_space < needed_space) in ocfs2_xa_check_space_helper()
|