mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
btrfs: rename btrfs_block_group_cache
The type name is misleading, a single entry is named 'cache' while this normally means a collection of objects. Rename that everywhere. Also the identifier was quite long, making function prototypes harder to format. Suggested-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d49a2ddb15
commit
32da5386d9
26 changed files with 278 additions and 293 deletions
|
@ -202,11 +202,11 @@ void btrfs_free_dummy_root(struct btrfs_root *root)
|
|||
kfree(root);
|
||||
}
|
||||
|
||||
struct btrfs_block_group_cache *
|
||||
struct btrfs_block_group *
|
||||
btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info,
|
||||
unsigned long length)
|
||||
{
|
||||
struct btrfs_block_group_cache *cache;
|
||||
struct btrfs_block_group *cache;
|
||||
|
||||
cache = kzalloc(sizeof(*cache), GFP_KERNEL);
|
||||
if (!cache)
|
||||
|
@ -232,7 +232,7 @@ btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info,
|
|||
return cache;
|
||||
}
|
||||
|
||||
void btrfs_free_dummy_block_group(struct btrfs_block_group_cache *cache)
|
||||
void btrfs_free_dummy_block_group(struct btrfs_block_group *cache)
|
||||
{
|
||||
if (!cache)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue