mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
btrfs: switch btrfs_backref_cache::is_reloc to bool
The btrfs_backref_cache::is_reloc is an indicator variable and should use a bool type. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
733fa44de3
commit
c71d3c698c
|
|
@ -3001,7 +3001,7 @@ int btrfs_backref_iter_next(struct btrfs_backref_iter *iter)
|
|||
}
|
||||
|
||||
void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info,
|
||||
struct btrfs_backref_cache *cache, int is_reloc)
|
||||
struct btrfs_backref_cache *cache, bool is_reloc)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
|
|
@ -440,11 +440,11 @@ struct btrfs_backref_cache {
|
|||
* Reloction backref cache require more info for reloc root compared
|
||||
* to generic backref cache.
|
||||
*/
|
||||
unsigned int is_reloc;
|
||||
bool is_reloc;
|
||||
};
|
||||
|
||||
void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info,
|
||||
struct btrfs_backref_cache *cache, int is_reloc);
|
||||
struct btrfs_backref_cache *cache, bool is_reloc);
|
||||
struct btrfs_backref_node *btrfs_backref_alloc_node(
|
||||
struct btrfs_backref_cache *cache, u64 bytenr, int level);
|
||||
struct btrfs_backref_edge *btrfs_backref_alloc_edge(
|
||||
|
|
|
|||
|
|
@ -4016,7 +4016,7 @@ static struct reloc_control *alloc_reloc_control(struct btrfs_fs_info *fs_info)
|
|||
|
||||
INIT_LIST_HEAD(&rc->reloc_roots);
|
||||
INIT_LIST_HEAD(&rc->dirty_subvol_roots);
|
||||
btrfs_backref_init_cache(fs_info, &rc->backref_cache, 1);
|
||||
btrfs_backref_init_cache(fs_info, &rc->backref_cache, true);
|
||||
rc->reloc_root_tree.rb_root = RB_ROOT;
|
||||
spin_lock_init(&rc->reloc_root_tree.lock);
|
||||
extent_io_tree_init(fs_info, &rc->processed_blocks, IO_TREE_RELOC_BLOCKS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user