#include "lib/ext.h"
#include "lib/types.h"
#include "lib/list.h"
#include "lib/mutex.h"
#include "be/btree.h"
#include "be/btree_xc.h"
#include "format/format.h"
#include "stob/ad.h"
#include "stob/ad_xc.h"
Go to the source code of this file.
|
enum | m0_balloc_group_desc_format_version { M0_BALLOC_GROUP_DESC_FORMAT_VERSION_1 = 1,
M0_BALLOC_GROUP_DESC_FORMAT_VERSION = M0_BALLOC_GROUP_DESC_FORMAT_VERSION_1
} |
|
enum | m0_balloc_allocation_flag {
M0_BALLOC_HINT_MERGE = 1 << 0,
M0_BALLOC_HINT_RESERVED = 1 << 1,
M0_BALLOC_HINT_METADATA = 1 << 2,
M0_BALLOC_HINT_FIRST = 1 << 3,
M0_BALLOC_HINT_BEST = 1 << 4,
M0_BALLOC_HINT_DATA = 1 << 5,
M0_BALLOC_HINT_NOPREALLOC = 1 << 6,
M0_BALLOC_HINT_GROUP_ALLOC = 1 << 7,
M0_BALLOC_HINT_GOAL_ONLY = 1 << 8,
M0_BALLOC_HINT_TRY_GOAL = 1 << 9,
M0_BALLOC_DELALLOC_RESERVED = 1 << 10,
M0_BALLOC_STREAM_ALLOC = 1 << 11,
M0_BALLOC_SPARE_ZONE = 1 << 12,
M0_BALLOC_NORMAL_ZONE = 1 << 13
} |
|
enum | m0_balloc_group_info_state { M0_BALLOC_GROUP_INFO_INIT = 1 << 0,
M0_BALLOC_GROUP_INFO_DIRTY = 1 << 1
} |
|
enum | m0_balloc_super_block_state { M0_BALLOC_SB_DIRTY = 1 << 0
} |
|
enum | m0_balloc_super_block_version { M0_BALLOC_SB_VERSION = 1ULL
} |
|
enum | { M0_BALLOC_BUDDY_LOOKUP_MAX = 10
} |
|
enum | m0_balloc_format_version { M0_BALLOC_FORMAT_VERSION_1 = 1,
M0_BALLOC_FORMAT_VERSION = M0_BALLOC_FORMAT_VERSION_1
} |
|
enum | { BALLOC_DEF_CONTAINER_SIZE = 4096ULL * 32 * 1024 * 1000,
BALLOC_DEF_BLOCK_SHIFT = 12,
BALLOC_DEF_GROUPS_NR = 64,
BALLOC_DEF_BLOCKS_PER_GROUP = 32768
} |
|
◆ __MOTR_BALLOC_BALLOC_H__
#define __MOTR_BALLOC_BALLOC_H__ |
◆ bgd_footer
◆ bgd_fragments
nr of freespace fragments
Definition at line 640 of file balloc.h.
◆ bgd_freeblocks
total free blocks
Definition at line 638 of file balloc.h.
◆ bgd_groupno
◆ bgd_header
◆ bgd_maxchunk
max bytes of freespace chunk
Definition at line 642 of file balloc.h.
◆ bsb_blocksize
block size in bytes
Definition at line 645 of file balloc.h.
◆ bsb_bsbits
block size bits: power of 2
Definition at line 647 of file balloc.h.
◆ bsb_format_time
◆ bsb_freeblocks
nr of free blocks
Definition at line 640 of file balloc.h.
◆ bsb_groupcount
◆ bsb_groupsize
group size in blocks
Definition at line 646 of file balloc.h.
◆ bsb_gsbits
group size bits: power of 2
Definition at line 648 of file balloc.h.
◆ bsb_last_check_time
uint64_t bsb_last_check_time |
◆ bsb_magic
◆ bsb_max_mnt_count
uint64_t bsb_max_mnt_count |
◆ bsb_mnt_count
◆ bsb_mnt_time
◆ bsb_prealloc_count
nr of pre-alloc blocks
Definition at line 650 of file balloc.h.
◆ bsb_state
◆ bsb_stripe_size
stripe size in blocks
Definition at line 660 of file balloc.h.
◆ bsb_totalsize
total size in bytes
Definition at line 639 of file balloc.h.
◆ bsb_uuid
◆ bsb_version
◆ bsb_write_time
◆ cb_ballroom
◆ cb_be_seg
◆ cb_container_id
container this block allocator belongs to.
Definition at line 637 of file balloc.h.
◆ cb_db_group_desc
db for group desc
Definition at line 653 of file balloc.h.
◆ cb_db_group_extents
db for free extent
Definition at line 651 of file balloc.h.
◆ cb_footer
◆ cb_group_info
array of group info
Definition at line 660 of file balloc.h.
◆ cb_header
◆ cb_last
◆ cb_sb
the on-disk and in-memory sb
Definition at line 639 of file balloc.h.
◆ cb_sb_mutex
super block lock
Definition at line 662 of file balloc.h.