Home
last modified time | relevance | path

Searched refs:free_space (Results 1 – 13 of 13) sorted by relevance

/fs/reiserfs/
Dlbalance.c315 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 …]
Dfix_node.c511 int free_space; in get_num_ver() local
513 free_space = max_node_size - total_node_size - IH_SIZE; in get_num_ver()
515 op_check_left(vi, free_space, start_bytes, in get_num_ver()
/fs/btrfs/tests/
Dfree-space-tests.c363 if (cache->free_space_ctl->free_space != 0) { in check_cache_empty()
593 if (cache->free_space_ctl->free_space != (SZ_1M + sectorsize)) { in test_steal_space_from_bitmap_to_extent()
616 if (cache->free_space_ctl->free_space != sectorsize) { in test_steal_space_from_bitmap_to_extent()
783 if (cache->free_space_ctl->free_space != (SZ_1M + 2 * sectorsize)) { in test_steal_space_from_bitmap_to_extent()
805 if (cache->free_space_ctl->free_space != 2 * sectorsize) { in test_steal_space_from_bitmap_to_extent()
/fs/btrfs/
Dctree.c3680 int free_space, u32 left_nritems, in __push_leaf_right() argument
3717 if (space + push_space * 2 > free_space) in __push_leaf_right()
3726 if (this_item_size + sizeof(*item) + push_space > free_space) in __push_leaf_right()
3834 int free_space; in push_leaf_right() local
3859 free_space = btrfs_leaf_free_space(right); in push_leaf_right()
3860 if (free_space < data_size) in push_leaf_right()
3869 free_space = btrfs_leaf_free_space(right); in push_leaf_right()
3870 if (free_space < data_size) in push_leaf_right()
3891 right, free_space, left_nritems, min_slot); in push_leaf_right()
3908 int free_space, u32 right_nritems, in __push_leaf_left() argument
[all …]
Dfree-space-cache.h21 u64 free_space; member
Dinode-map.c204 root->free_ino_ctl->free_space > 0); in btrfs_find_free_ino()
207 root->free_ino_ctl->free_space == 0) in btrfs_find_free_ino()
Dfree-space-cache.c896 matched = (ctl->free_space == (block_group->key.offset - used - in load_free_space_cache()
1640 ctl->free_space -= info->bytes; in unlink_free_space()
1654 ctl->free_space += info->bytes; in link_free_space()
1728 ctl->free_space -= bytes; in bitmap_clear_bits()
1744 ctl->free_space += bytes; in bitmap_set_bits()
2824 ctl->free_space -= bytes; in btrfs_alloc_from_cluster()
3098 if (ctl->free_space < bytes) { in btrfs_find_space_cluster()
3217 if (ctl->free_space < minlen) { in trim_no_bitmap()
3302 if (ctl->free_space < minlen) { in trim_bitmaps()
Dfile-item.c854 u32 free_space; in btrfs_csum_file_blocks() local
860 free_space = btrfs_leaf_free_space(leaf) - in btrfs_csum_file_blocks()
872 diff = min(free_space, diff); in btrfs_csum_file_blocks()
Ddelayed-inode.c700 int free_space; in btrfs_batch_insert_items() local
715 free_space = btrfs_leaf_free_space(leaf); in btrfs_batch_insert_items()
725 free_space) { in btrfs_batch_insert_items()
Dextent-tree.c3640 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3645 free_space_ctl->free_space); in find_free_extent_unclustered()
Dblock-group.c405 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
/fs/ocfs2/
Ddir.c3348 unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize; in ocfs2_find_dir_space_id() local
3355 free_space = ocfs2_dir_trailer_blk_off(sb) - i_size_read(dir); in ocfs2_find_dir_space_id()
3357 free_space = dir->i_sb->s_blocksize - i_size_read(dir); in ocfs2_find_dir_space_id()
3399 new_rec_len = le16_to_cpu(last_de->rec_len) + free_space; in ocfs2_find_dir_space_id()
Dxattr.c1425 int free_space; in ocfs2_xa_check_space_helper() local
1430 free_space = free_start - in ocfs2_xa_check_space_helper()
1434 if (free_space < 0) in ocfs2_xa_check_space_helper()
1436 if (free_space < needed_space) in ocfs2_xa_check_space_helper()