• Home
  • Raw
  • Download

Lines Matching +full:count +full:- +full:threshold

10 #include "dm-block-manager.h"
27 * Extensions do not appear in this count until after commit has
30 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count);
37 * have blocks with a zero reference count that will not be
40 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count);
45 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count);
66 * You can register one threshold callback which is edge-triggered
67 * when the free space in the space map drops below the threshold.
70 dm_block_t threshold,
75 /*----------------------------------------------------------------*/
79 sm->destroy(sm); in dm_sm_destroy()
84 return sm->extend(sm, extra_blocks); in dm_sm_extend()
87 static inline int dm_sm_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_blocks() argument
89 return sm->get_nr_blocks(sm, count); in dm_sm_get_nr_blocks()
92 static inline int dm_sm_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_free() argument
94 return sm->get_nr_free(sm, count); in dm_sm_get_nr_free()
100 return sm->get_count(sm, b, result); in dm_sm_get_count()
106 return sm->count_is_more_than_one(sm, b, result); in dm_sm_count_is_more_than_one()
110 uint32_t count) in dm_sm_set_count() argument
112 return sm->set_count(sm, b, count); in dm_sm_set_count()
117 return sm->commit(sm); in dm_sm_commit()
122 return sm->inc_block(sm, b); in dm_sm_inc_block()
127 return sm->dec_block(sm, b); in dm_sm_dec_block()
132 return sm->new_block(sm, b); in dm_sm_new_block()
137 return sm->root_size(sm, result); in dm_sm_root_size()
142 return sm->copy_root(sm, copy_to_here_le, len); in dm_sm_copy_root()
146 dm_block_t threshold, in dm_sm_register_threshold_callback() argument
150 if (sm->register_threshold_callback) in dm_sm_register_threshold_callback()
151 return sm->register_threshold_callback(sm, threshold, fn, context); in dm_sm_register_threshold_callback()
153 return -EINVAL; in dm_sm_register_threshold_callback()